Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1415158 > unrolled thread
| Started by | Luis de Bethencourt <luisbg@osg.samsung.com> |
|---|---|
| First post | 2016-06-06 16:50 +0200 |
| Last post | 2016-06-06 16:50 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] afs: remove redundant check Luis de Bethencourt <luisbg@osg.samsung.com> - 2016-06-06 16:50 +0200
| From | Luis de Bethencourt <luisbg@osg.samsung.com> |
|---|---|
| Date | 2016-06-06 16:50 +0200 |
| Subject | [PATCH] afs: remove redundant check |
| Message-ID | <rH40O-6ct-15@gated-at.bofh.it> |
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 top | Article view | linux.kernel
csiph-web