Commit 33e59713 authored by Wei Yongjun's avatar Wei Yongjun Committed by Samuel Ortiz
Browse files

NFC: Remove pointless conditional before HCI kfree_skb()

parent f2ce3982
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -398,7 +398,6 @@ static int hci_dev_session_init(struct nfc_hci_dev *hdev)
	nfc_hci_disconnect_all_gates(hdev);

exit:
	if (skb)
	kfree_skb(skb);

	return r;
+1 −2
Original line number Diff line number Diff line
@@ -241,7 +241,6 @@ static void nfc_shdlc_rcv_i_frame(struct nfc_shdlc *shdlc,
	}

exit:
	if (skb)
	kfree_skb(skb);
}