]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Simplify return logic in hash_fd2()
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 5 Sep 2010 08:51:09 +0000 (10:51 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 5 Sep 2010 08:51:59 +0000 (10:51 +0200)
hash.c

diff --git a/hash.c b/hash.c
index 10be6a96486129b3b60d872d9be9b772360a60a7..42e0935f13c388787acae7c6d768959bed885f4d 100644 (file)
--- 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;
 }
 
 /*