summaryrefslogtreecommitdiff
path: root/drivers/nfc/st-nci/se.c
diff options
context:
space:
mode:
authorChristophe Ricard <christophe.ricard@gmail.com>2015-10-26 00:54:26 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2015-10-26 08:53:14 +0300
commit543a0a301fb831f19a37ac06fbe8094e0b5a2c73 (patch)
treec4dd4ba5452a6cb79f63a7b95f8bd892f714a8b0 /drivers/nfc/st-nci/se.c
parenta1b0b9415817c14d207921582f269d03f848b69f (diff)
downloadlinux-543a0a301fb831f19a37ac06fbe8094e0b5a2c73.tar.xz
NFC: st-nci: Remove HCI init_data.gates initialization in load_session
ndev->hci_dev->init_data.gates is already initialized in st_nci_hci_network. Cc: stable@vger.kernel.org Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/st-nci/se.c')
-rw-r--r--drivers/nfc/st-nci/se.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/nfc/st-nci/se.c b/drivers/nfc/st-nci/se.c
index 4acb945ac252..3ffac0e67f94 100644
--- a/drivers/nfc/st-nci/se.c
+++ b/drivers/nfc/st-nci/se.c
@@ -244,9 +244,6 @@ int st_nci_hci_load_session(struct nci_dev *ndev)
kfree_skb(skb_pipe_info);
}
- memcpy(ndev->hci_dev->init_data.gates, st_nci_gates,
- sizeof(st_nci_gates));
-
kfree_skb(skb_pipe_list);
return r;
}