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>
This commit is contained in:
parent
56a63c82cf
commit
369f4d503a
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ int nfc_dev_up(struct nfc_dev *dev)
|
||||||
/* We have to enable the device before discovering SEs */
|
/* We have to enable the device before discovering SEs */
|
||||||
if (dev->ops->discover_se) {
|
if (dev->ops->discover_se) {
|
||||||
rc = dev->ops->discover_se(dev);
|
rc = dev->ops->discover_se(dev);
|
||||||
if (!rc)
|
if (rc)
|
||||||
pr_warn("SE discovery failed\n");
|
pr_warn("SE discovery failed\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue