aboutsummaryrefslogtreecommitdiff
path: root/net/nfc
diff options
context:
space:
mode:
authorSamuel Ortiz2013-07-24 14:49:22 +0200
committerSamuel Ortiz2013-08-14 00:35:19 +0200
commit369f4d503ac12363f5d11b91f849377875d57598 (patch)
tree72affc243883d1312728db0b849acdfc889cd345 /net/nfc
parent56a63c82cf82eb491af05759d9e9f9b97ca36bc2 (diff)
NFC: Fix SE discovery failure warning condition
This is a typo coming from the initial implementation. se_discover fails when it returns something different than zero and we should only display a warning in that case. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc')
-rw-r--r--net/nfc/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/core.c b/net/nfc/core.c
index 1d074dd1650f..aad7f8f59784 100644
--- a/net/nfc/core.c
+++ b/net/nfc/core.c
@@ -129,7 +129,7 @@ int nfc_dev_up(struct nfc_dev *dev)
/* We have to enable the device before discovering SEs */
if (dev->ops->discover_se) {
rc = dev->ops->discover_se(dev);
- if (!rc)
+ if (rc)
pr_warn("SE discovery failed\n");
}