summaryrefslogtreecommitdiffstats
path: root/net/nfc
diff options
context:
space:
mode:
authorEric Lapuyade2012-05-07 12:31:14 +0200
committerJohn W. Linville2012-05-15 23:28:00 +0200
commitaddfabf98daad7b469ad788a622dbeab6aaaa330 (patch)
tree252043c69754cb2c943530af909bdd567ddd9977 /net/nfc
parentNFC: Cache the core NFC active target pointer instead of its index (diff)
downloadkernel-qcow2-linux-addfabf98daad7b469ad788a622dbeab6aaaa330.tar.gz
kernel-qcow2-linux-addfabf98daad7b469ad788a622dbeab6aaaa330.tar.xz
kernel-qcow2-linux-addfabf98daad7b469ad788a622dbeab6aaaa330.zip
NFC: Remove useless HCI private nfc target table
Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/nfc')
-rw-r--r--net/nfc/hci/core.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/net/nfc/hci/core.c b/net/nfc/hci/core.c
index 545c19f17536..ef5cd5c9e3fb 100644
--- a/net/nfc/hci/core.c
+++ b/net/nfc/hci/core.c
@@ -235,13 +235,6 @@ static int nfc_hci_target_discovered(struct nfc_hci_dev *hdev, u8 gate)
targets->hci_reader_gate = gate;
r = nfc_targets_found(hdev->ndev, targets, 1);
- if (r < 0)
- goto exit;
-
- kfree(hdev->targets);
- hdev->targets = targets;
- targets = NULL;
- hdev->target_count = 1;
exit:
kfree(targets);