Browse Source

diff.c cleanup

Removes conditional return.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
David Rientjes 19 years ago committed by Junio C Hamano
parent
commit
8c0b2bb636
  1. 4
      diff.c

4
diff.c

@ -904,9 +904,7 @@ static int mmfile_is_binary(mmfile_t *mf) @@ -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,

Loading…
Cancel
Save