diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-02-06 22:20:15 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-07 19:39:37 +0100 |
commit | af2ce213f6e6b28497c5c932f43b94026b5a0363 (patch) | |
tree | dbe896edf6f6a41ccb21ae850646af99817ff259 | |
parent | sh-eth: use netdev stats structure and fix dma_map_single (diff) | |
download | linux-af2ce213f6e6b28497c5c932f43b94026b5a0363.tar.xz linux-af2ce213f6e6b28497c5c932f43b94026b5a0363.zip |
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 <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/caif/chnl_net.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/caif/chnl_net.c b/net/caif/chnl_net.c index a751d9b263ed..e866234d0e5a 100644 --- a/net/caif/chnl_net.c +++ b/net/caif/chnl_net.c @@ -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; |