From: Joel Rosdahl Date: Sun, 5 Sep 2010 08:51:09 +0000 (+0200) Subject: Simplify return logic in hash_fd2() X-Git-Tag: v3.1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b6216a31d9e7a7399feaea50fa0cccdd9d48cce;p=thirdparty%2Fccache.git Simplify return logic in hash_fd2() --- diff --git a/hash.c b/hash.c index 10be6a964..42e0935f1 100644 --- a/hash.c +++ b/hash.c @@ -117,11 +117,7 @@ hash_fd2(struct mdfour *md1, struct mdfour *md2, int fd) hash_buffer(md2, buf, n); } } - if (n == 0) { - return true; - } else { - return false; - } + return n == 0; } /*