diff options
| author | David Rientjes <rientjes@google.com> | 2006-08-14 13:34:16 -0700 |
|---|---|---|
| committer | Junio C Hamano <junkio@cox.net> | 2006-08-14 18:38:07 -0700 |
| commit | 8c0b2bb636c15a1cd0adb8bcf3b42497d699c884 (patch) | |
| tree | 1644c15ba82e05e44b173402562956e42184a2b5 /diff.c | |
| parent | builtin-push.c cleanup (diff) | |
| download | git-8c0b2bb636c15a1cd0adb8bcf3b42497d699c884.tar.gz git-8c0b2bb636c15a1cd0adb8bcf3b42497d699c884.zip | |
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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, |
