DORMANTno replies

[PATCH 18/28] diff.c cleanup

From: David Rientjes <rientjes@google.com>
Date: 2016-06-15 22:42:37
Subsystem: the rest · Maintainer: Linus Torvalds

Removes conditional return.

		David

Signed-off-by: David Rientjes <rientjes@google.com>
---
 diff.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/diff.c b/diff.c
index 8861b85..2327e60 100644
--- a/diff.c
+++ b/diff.c
@@ -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,
-- 
1.4.2.g89bb-dirty
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help