Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4eba11e8 authored by Dan Carpenter's avatar Dan Carpenter Committed by Samuel Ortiz
Browse files

NFC: hci: Fix enable/disable confusion



There is a cut and paste bug so we enable a second time instead of
disabling.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 06c66034
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}