]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
NFC: hci: Fix enable/disable confusion
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 Jun 2013 22:48:26 +0000 (01:48 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 13 Aug 2013 23:13:36 +0000 (01:13 +0200)
There is a cut and paste bug so we enable a second time instead of
disabling.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/hci/core.c

index fe66908401f55ed5f608a75b559e5fad1ff15548..d07ca4c5cf8c988c6240d0f6d9c666fe2ef76c4a 100644 (file)
@@ -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;
 }