projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56a63c8
)
NFC: Fix SE discovery failure warning condition
author
Samuel Ortiz
<sameo@linux.intel.com>
Wed, 24 Jul 2013 12:49:22 +0000
(14:49 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Tue, 13 Aug 2013 22:35:19 +0000
(
00:35
+0200)
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>
net/nfc/core.c
patch
|
blob
|
history
diff --git
a/net/nfc/core.c
b/net/nfc/core.c
index 1d074dd1650ff2fd326dd141eedb828d812a12e6..aad7f8f59784e096f13bda0975acf2f5b70f4b30 100644
(file)
--- 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");
}