Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1415158

[PATCH] afs: remove redundant check

From Luis de Bethencourt <luisbg@osg.samsung.com>
Newsgroups linux.kernel
Subject [PATCH] afs: remove redundant check
Date 2016-06-06 16:50 +0200
Message-ID <rH40O-6ct-15@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


last is already checked before the switch statement, if it is false it will
return. A second check without the value possibly changing is redundant.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
---
 fs/afs/cmservice.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/fs/afs/cmservice.c b/fs/afs/cmservice.c
index 4b0eff6..a201713 100644
--- a/fs/afs/cmservice.c
+++ b/fs/afs/cmservice.c
@@ -509,9 +509,6 @@ static int afs_deliver_cb_probe_uuid(struct afs_call *call, struct sk_buff *skb,
 		break;
 	}
 
-	if (!last)
-		return 0;
-
 	call->state = AFS_CALL_REPLYING;
 
 	INIT_WORK(&call->work, SRXAFSCB_ProbeUuid);
-- 
2.6.4

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] afs: remove redundant check Luis de Bethencourt <luisbg@osg.samsung.com> - 2016-06-06 16:50 +0200

csiph-web