NFC: fix enable/disable confusion
Subsystems (3)
PATCH 1/1 NFC: fix enable/disable confusion
There is a cut and paste bug so we enable a second time instead of disabling.
Signed-off-by Dan Carpenter <[email protected]>
net/nfc/hci/core.c +1 -1
@@ -717,7 +717,7 @@ static int hci_disable_se(struct nfc_dev *nfc_dev, u32 se_idx)struct nfc_hci_dev *hdev =nfc_get_drvdata (nfc_dev);if (hdev->ops->disable_se) -return hdev->ops->enable_se (hdev, se_idx); +return hdev->ops->disable_se (hdev, se_idx);return 0 ; }
Samuel Ortiz
AppliedHi Dan,
Quoted 10 lines · Dan Carpenter
There is a cut and paste bug so we enable a second time instead of disabling.
Signed-off-by Dan Carpenter <[email protected]>net/nfc/hci/core.c +0
-0
net/nfc/hci/core.c static int hci_disable_se(struct nfc_dev *nfc_dev, u32 se_idx) · line 723
Quoted 8 lines
net/nfc/hci/core.c +1
-1@@ -717,7 +717,7 @@ static int hci_disable_se(struct nfc_dev *nfc_dev, u32 se_idx)struct nfc_hci_dev *hdev =nfc_get_drvdata (nfc_dev);if (hdev->ops->disable_se) -return hdev->ops->enable_se (hdev, se_idx); +return hdev->ops->disable_se (hdev, se_idx);return 0 ; }
Applied to nfc-fixes, thanks.
Cheers,
Samuel.
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/