From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eecE2-0005h0-DN for barebox@lists.infradead.org; Thu, 25 Jan 2018 07:45:40 +0000 From: Sascha Hauer Date: Thu, 25 Jan 2018 08:45:20 +0100 Message-Id: <20180125074520.10320-9-s.hauer@pengutronix.de> In-Reply-To: <20180125074520.10320-1-s.hauer@pengutronix.de> References: <20180125074520.10320-1-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 8/8] fs: remove now unused function can_lseek_backward() To: Barebox List Signed-off-by: Sascha Hauer --- include/fs.h | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/include/fs.h b/include/fs.h index d75a1ef644..e6fcd044dd 100644 --- a/include/fs.h +++ b/include/fs.h @@ -101,26 +101,6 @@ struct fs_device_d { char *linux_rootarg; }; -/* - * Some filesystems i.e. tftpfs only support lseek into one direction. - * To detect this limited functionality we add this extra function. - * Additionaly we also return 0 if we even can not seek forward. - */ -static inline int can_lseek_backward(int fd) -{ - int ret; - - ret = lseek(fd, 1, SEEK_SET); - if (ret < 0) - return 0; - - ret = lseek(fd, 0, SEEK_SET); - if (ret < 0) - return 0; - - return 1; -} - bool __is_tftp_fs(const char *path); static inline bool is_tftp_fs(const char *path) -- 2.15.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox