Commit 973b1b9a authored by Sachin Kamat's avatar Sachin Kamat Committed by David S. Miller

caif: Remove redundant null check before kfree in cfctrl.c

kfree on a null pointer is a no-op.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Acked-by: default avatarSjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4babfb9b
...@@ -515,8 +515,7 @@ static int cfctrl_recv(struct cflayer *layer, struct cfpkt *pkt) ...@@ -515,8 +515,7 @@ static int cfctrl_recv(struct cflayer *layer, struct cfpkt *pkt)
client_layer : NULL); client_layer : NULL);
} }
if (req != NULL) kfree(req);
kfree(req);
spin_unlock_bh(&cfctrl->info_list_lock); spin_unlock_bh(&cfctrl->info_list_lock);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment