提交 973b1b9a 编写于 作者: S Sachin Kamat 提交者: 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: NSachin Kamat <sachin.kamat@linaro.org>
Acked-by: NSjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 4babfb9b
......@@ -515,8 +515,7 @@ static int cfctrl_recv(struct cflayer *layer, struct cfpkt *pkt)
client_layer : NULL);
}
if (req != NULL)
kfree(req);
kfree(req);
spin_unlock_bh(&cfctrl->info_list_lock);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册