From 380c282d440f07ece2abc2c0c1d9aa10939bdd05 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 3 Aug 2014 11:51:40 +0200 Subject: locking: Avoid a pointless cast Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/locking/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/locking/posix.c b/source3/locking/posix.c index 9ee59be5d5..4189a2d8e4 100644 --- a/source3/locking/posix.c +++ b/source3/locking/posix.c @@ -114,7 +114,7 @@ static bool posix_lock_in_range(off_t *offset_out, off_t *count_out, * any Win32 locks of length zero. JRA. */ - if (count == (off_t)0) { + if (count == 0) { DEBUG(10,("posix_lock_in_range: count = 0, ignoring.\n")); return False; } -- cgit