aboutsummaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2006-08-14 13:34:16 -0700
committerJunio C Hamano <junkio@cox.net>2006-08-14 18:38:07 -0700
commit8c0b2bb636c15a1cd0adb8bcf3b42497d699c884 (patch)
tree1644c15ba82e05e44b173402562956e42184a2b5 /diff.c
parent9e0ec82cac84e6963d7e4aa229b7464daaed4ef8 (diff)
downloadgit-8c0b2bb636c15a1cd0adb8bcf3b42497d699c884.tar.gz
git-8c0b2bb636c15a1cd0adb8bcf3b42497d699c884.tar.xz
diff.c cleanup
Removes conditional return. Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/diff.c b/diff.c
index 8861b853e..2327e6065 100644
--- a/diff.c
+++ b/diff.c
@@ -904,9 +904,7 @@ static int mmfile_is_binary(mmfile_t *mf)
long sz = mf->size;
if (FIRST_FEW_BYTES < sz)
sz = FIRST_FEW_BYTES;
- if (memchr(mf->ptr, 0, sz))
- return 1;
- return 0;
+ return !!memchr(mf->ptr, 0, sz);
}
static void builtin_diff(const char *name_a,