aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/connector
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2014-03-01 15:00:56 -0500
committerDavid S. Miller <davem@davemloft.net>2014-03-03 15:39:20 -0500
commit086928179c6ce868bd18e8e4b048ccd1f388d97c (patch)
tree488968d65c3c003976e874d3a3bd539fefa9f88f /drivers/connector
parenta811f2c0386afdee71bbf2bf857e75fb9dc088f7 (diff)
connector: remove duplicated code in cn_call_callback()
There were a couple of patches fixing the same bug that results in duplicated err = 0; assignment. The patch removes one of them. Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/connector')
-rw-r--r--drivers/connector/connector.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/connector/connector.c b/drivers/connector/connector.c
index a36749f1e44a..9b0ea0a6e26e 100644
--- a/drivers/connector/connector.c
+++ b/drivers/connector/connector.c
@@ -139,7 +139,6 @@ static int cn_call_callback(struct sk_buff *skb)
139 spin_unlock_bh(&dev->cbdev->queue_lock); 139 spin_unlock_bh(&dev->cbdev->queue_lock);
140 140
141 if (cbq != NULL) { 141 if (cbq != NULL) {
142 err = 0;
143 cbq->callback(msg, nsp); 142 cbq->callback(msg, nsp);
144 kfree_skb(skb); 143 kfree_skb(skb);
145 cn_queue_release_callback(cbq); 144 cn_queue_release_callback(cbq);