Commit addfabf9 authored by Eric Lapuyade's avatar Eric Lapuyade Committed by John W. Linville

NFC: Remove useless HCI private nfc target table

Signed-off-by: default avatarEric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 90099433
...@@ -83,8 +83,6 @@ struct nfc_hci_dev { ...@@ -83,8 +83,6 @@ struct nfc_hci_dev {
u8 gate2pipe[NFC_HCI_MAX_GATES]; u8 gate2pipe[NFC_HCI_MAX_GATES];
bool poll_started; bool poll_started;
struct nfc_target *targets;
int target_count;
u8 sw_romlib; u8 sw_romlib;
u8 sw_patch; u8 sw_patch;
......
...@@ -235,13 +235,6 @@ static int nfc_hci_target_discovered(struct nfc_hci_dev *hdev, u8 gate) ...@@ -235,13 +235,6 @@ static int nfc_hci_target_discovered(struct nfc_hci_dev *hdev, u8 gate)
targets->hci_reader_gate = gate; targets->hci_reader_gate = gate;
r = nfc_targets_found(hdev->ndev, targets, 1); 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: exit:
kfree(targets); kfree(targets);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment