From 185fc12fddd13840fbf59ba807a9f37aced2dc57 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 10 Mar 2007 20:45:38 +0100 Subject: [PATCH] Removed an unnecessary optimization. In fact, this could never trigger in recent versions of libucw as it's already tested in bseek() and bsetpos(). --- lib/fb-file.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/fb-file.c b/lib/fb-file.c index bd0f4d1e..a7290cbf 100644 --- a/lib/fb-file.c +++ b/lib/fb-file.c @@ -57,9 +57,6 @@ bfd_spout(struct fastbuf *f) static int bfd_seek(struct fastbuf *f, sh_off_t pos, int whence) { - if (whence == SEEK_SET && pos == f->pos) - return 1; - sh_off_t l = sh_seek(FB_FILE(f)->fd, pos, whence); if (l < 0) return 0; -- 2.39.2