From: Alexey Khoroshilov Date: Sat, 1 Mar 2014 20:00:56 +0000 (+0400) Subject: connector: remove duplicated code in cn_call_callback() X-Git-Tag: v5.15~18171^2~232 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=086928179c6ce868bd18e8e4b048ccd1f388d97c;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/connector/connector.c b/drivers/connector/connector.c index a36749f..9b0ea0a 100644 --- a/drivers/connector/connector.c +++ b/drivers/connector/connector.c @@ -139,7 +139,6 @@ static int cn_call_callback(struct sk_buff *skb) spin_unlock_bh(&dev->cbdev->queue_lock); if (cbq != NULL) { - err = 0; cbq->callback(msg, nsp); kfree_skb(skb); cn_queue_release_callback(cbq);