Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bluetooth: btintel_pcie: Remove unnecessary check before kfree_skb()

The kfree_skb() function internally checks if the skb is NULL,
so an explicit check before calling it is redundant and can be removed.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Chen Ni and committed by
Luiz Augusto von Dentz
1583ca8e 312b09bb

+1 -2
+1 -2
drivers/bluetooth/btintel_pcie.c
··· 1190 1190 skb = NULL; /* skb is freed in the callee */ 1191 1191 1192 1192 exit_error: 1193 - if (skb) 1194 - kfree_skb(skb); 1193 + kfree_skb(skb); 1195 1194 1196 1195 if (ret) 1197 1196 hdev->stat.err_rx++;