summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-01-22 11:19:50 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-01-25 08:43:16 +0100
commit74cdc34323ee23b9b195866c56699e268f05841a (patch)
treef58b296380cda30b3d22acd2b65f287f212d79ce
parent4c3ea0d3355a965b58116f289a6b1214cc66a739 (diff)
downloadbarebox-74cdc34323ee23b9b195866c56699e268f05841a.tar.gz
barebox-74cdc34323ee23b9b195866c56699e268f05841a.tar.xz
fs: remove now unused function can_lseek_backward()
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--include/fs.h20
1 files changed, 0 insertions, 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)