# [PATCH 18/28] diff.c cleanup

1 messages from 2006-08-14 to 2006-08-14. Participants: David Rientjes.
Thread: https://gitlist.dev/t/5267

## David Rientjes, 2006-08-14 20:34

Subject: [PATCH 18/28] diff.c cleanup
Message-ID: <Pine.LNX.4.63.0608141333430.19383@chino.corp.google.com>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0608141333430.19383%40chino.corp.google.com

```
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

```
