[PATCH] afs: remove redundant check
Luis de Bethencourt
luisbg at osg.samsung.com
Mon Jun 6 07:40:21 PDT 2016
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 at 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
More information about the linux-afs
mailing list