commit | 8c0b2bb636c15a1cd0adb8bcf3b42497d699c884 | [log] [tgz] |
---|---|---|
author | David Rientjes <rientjes@google.com> | Mon Aug 14 13:34:16 2006 -0700 |
committer | Junio C Hamano <junkio@cox.net> | Mon Aug 14 18:38:07 2006 -0700 |
tree | 1644c15ba82e05e44b173402562956e42184a2b5 | |
parent | 9e0ec82cac84e6963d7e4aa229b7464daaed4ef8 [diff] [blame] |
diff.c cleanup Removes conditional return. Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
diff --git a/diff.c b/diff.c index 8861b85..2327e60 100644 --- a/diff.c +++ b/diff.c
@@ -904,9 +904,7 @@ 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,