提交 addfabf9 编写于 作者: E Eric Lapuyade 提交者: John W. Linville

NFC: Remove useless HCI private nfc target table

Signed-off-by: NEric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 90099433
......@@ -83,8 +83,6 @@ struct nfc_hci_dev {
u8 gate2pipe[NFC_HCI_MAX_GATES];
bool poll_started;
struct nfc_target *targets;
int target_count;
u8 sw_romlib;
u8 sw_patch;
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册