Skip to content

Commit

Permalink
NFC: Remove pointless conditional before HCI kfree_skb()
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Wei Yongjun authored and Samuel Ortiz committed Sep 24, 2012
1 parent f2ce398 commit 33e5971
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions net/nfc/hci/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,7 @@ static int hci_dev_session_init(struct nfc_hci_dev *hdev)
nfc_hci_disconnect_all_gates(hdev);

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

return r;
}
Expand Down
3 changes: 1 addition & 2 deletions net/nfc/hci/shdlc.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ static void nfc_shdlc_rcv_i_frame(struct nfc_shdlc *shdlc,
}

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

static void nfc_shdlc_rcv_ack(struct nfc_shdlc *shdlc, int y_nr)
Expand Down

0 comments on commit 33e5971

Please sign in to comment.