NFC: st-nci: Remove HCI init_data.gates initialization in load_session
authorChristophe Ricard <christophe.ricard@gmail.com>
Sun, 25 Oct 2015 21:54:26 +0000 (22:54 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 26 Oct 2015 05:53:14 +0000 (06:53 +0100)
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>
drivers/nfc/st-nci/se.c

index 4acb945..3ffac0e 100644 (file)
@@ -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;
 }