Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- include/fs.h | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/include/fs.h b/include/fs.h index 5a50d9b9e4..2d08add01a 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.11.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox