diff.c cleanup

Removes conditional return.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
David Rientjes 2006-08-14 13:34:16 -07:00 committed by Junio C Hamano
parent 9e0ec82cac
commit 8c0b2bb636

4
diff.c
View File

@ -904,9 +904,7 @@ static int mmfile_is_binary(mmfile_t *mf)
long sz = mf->size; long sz = mf->size;
if (FIRST_FEW_BYTES < sz) if (FIRST_FEW_BYTES < sz)
sz = FIRST_FEW_BYTES; sz = FIRST_FEW_BYTES;
if (memchr(mf->ptr, 0, sz)) return !!memchr(mf->ptr, 0, sz);
return 1;
return 0;
} }
static void builtin_diff(const char *name_a, static void builtin_diff(const char *name_a,