]> mj.ucw.cz Git - libucw.git/commitdiff
Removed an unnecessary optimization.
authorMartin Mares <mj@ucw.cz>
Sat, 10 Mar 2007 19:45:38 +0000 (20:45 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 10 Mar 2007 19:45:38 +0000 (20:45 +0100)
In fact, this could never trigger in recent versions of libucw
as it's already tested in bseek() and bsetpos().

lib/fb-file.c

index bd0f4d1ef41800fd9a6b06210c79e94f3811d090..a7290cbf8688f9de261a38c4e50dbb9584eee91e 100644 (file)
@@ -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;