aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc/hci/core.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-08-28 21:02:40 +0800
committerSamuel Ortiz <sameo@linux.intel.com>2012-09-25 00:17:24 +0200
commit33e5971358c37851137b264f815977507c016fac (patch)
tree8191d95d73574954ed9376a95bbbccefb20802c0 /net/nfc/hci/core.c
parentNFC: Set the IRQF_ONESHOT flag from the pn544_hci IRQ handler request (diff)
downloadlinux-dev-33e5971358c37851137b264f815977507c016fac.tar.xz
linux-dev-33e5971358c37851137b264f815977507c016fac.zip
NFC: Remove pointless conditional before HCI kfree_skb()
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/hci/core.c')
-rw-r--r--net/nfc/hci/core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/nfc/hci/core.c b/net/nfc/hci/core.c
index 03646beb3a73..15744c01bddc 100644
--- a/net/nfc/hci/core.c
+++ b/net/nfc/hci/core.c
@@ -398,8 +398,7 @@ disconnect_all:
nfc_hci_disconnect_all_gates(hdev);
exit:
- if (skb)
- kfree_skb(skb);
+ kfree_skb(skb);
return r;
}