From: Martin Mares Date: Sat, 10 Mar 2007 19:45:38 +0000 (+0100) Subject: Removed an unnecessary optimization. X-Git-Tag: holmes-import~506^2~98^2~5 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=185fc12fddd13840fbf59ba807a9f37aced2dc57;p=libucw.git Removed an unnecessary optimization. In fact, this could never trigger in recent versions of libucw as it's already tested in bseek() and bsetpos(). --- 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;