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:
parent
9e0ec82cac
commit
8c0b2bb636
4
diff.c
4
diff.c
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user