Bluetooth: Remove some pointless conditionals before kfree_skb()
Remove some pointless conditionals before kfree_skb(). Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
committed by
Marcel Holtmann
parent
7585b97a48
commit
b1fb06830d
@@ -257,8 +257,7 @@ static inline int bfusb_recv_block(struct bfusb_data *data, int hdr, unsigned ch
|
||||
|
||||
if (hdr & 0x10) {
|
||||
BT_ERR("%s error in block", data->hdev->name);
|
||||
if (data->reassembly)
|
||||
kfree_skb(data->reassembly);
|
||||
kfree_skb(data->reassembly);
|
||||
data->reassembly = NULL;
|
||||
return -EIO;
|
||||
}
|
||||
|
Reference in New Issue
Block a user