Commit 9bac75d0 authored by Christophe Ricard's avatar Christophe Ricard Committed by Samuel Ortiz

NFC: st21nfca: st21nfca_hci_i2c_probe returns st21nfca_hci_probe result.

st21nfca_hci_probe return 0 in case of successful call and a different
value in any other cases.

There is no need to check for st21nfca_hci_probe return as this will be
checked after st21nfca_hci_i2c_probe is completed.
Signed-off-by: default avatarChristophe Ricard <[email protected]>
Signed-off-by: default avatarSamuel Ortiz <[email protected]>
parent 761a2c4f
......@@ -555,14 +555,9 @@ static int st21nfca_hci_i2c_probe(struct i2c_client *client,
return r;
r = st21nfca_hci_probe(phy, &i2c_phy_ops, LLC_SHDLC_NAME,
return st21nfca_hci_probe(phy, &i2c_phy_ops, LLC_SHDLC_NAME,
if (r < 0)
return r;
return 0;
static int st21nfca_hci_i2c_remove(struct i2c_client *client)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment