From: David Rientjes Date: Mon, 14 Aug 2006 20:34:16 +0000 (-0700) Subject: diff.c cleanup X-Git-Tag: v1.4.3-rc1~251 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8c0b2bb636c15a1cd0adb8bcf3b42497d699c884;p=git.git diff.c cleanup Removes conditional return. Signed-off-by: David Rientjes Signed-off-by: Junio C Hamano --- 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,