caif: remove duplicate initialization
Subsystems (3)
PATCH 1/1 caif: remove duplicate initialization
"priv" is initialized twice. I kept the second one, because it is next to the check for NULL.
Signed-off-by Dan Carpenter <[email protected]>
net/caif/chnl_net.c +1 -2
@@ -72,13 +72,12 @@ static void robust_list_del(struct list_head *delete_node)static int chnl_recv_cb (struct cflayer *layr,struct cfpkt *pkt) {struct sk_buff *skb; - struct chnl_net *priv = container_of(layr, struct chnl_net, chnl); +struct chnl_net *priv;int pktlen;const u8 *ip_version;u8 buf; priv = container_of(layr, struct chnl_net, chnl); -if (!priv)return -EINVAL ;
From: Dan Carpenter <[email protected]>
Date: Tue, 7 Feb 2012 10:20:15 +0300
Quoted 4 lines
"priv" is initialized twice. I kept the second one, because it is next to the check for NULL.
Signed-off-by Dan Carpenter <[email protected]>
Applied, thanks Dan.