Commit bc6b8275 authored by Christophe Ricard's avatar Christophe Ricard Committed by Samuel Ortiz

NFC: st21nfcb: remove error output

In case we are not able to read out the NDLC/NCI header, we do not
consider this as an issue and we will give a later chance.
The NDLC layer will handle errors thanks to its internal timers.
Signed-off-by: default avatarChristophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 941ec5c6
...@@ -156,10 +156,8 @@ static int st21nfcb_nci_i2c_read(struct st21nfcb_i2c_phy *phy, ...@@ -156,10 +156,8 @@ static int st21nfcb_nci_i2c_read(struct st21nfcb_i2c_phy *phy,
r = i2c_master_recv(client, buf, ST21NFCB_NCI_I2C_MIN_SIZE); r = i2c_master_recv(client, buf, ST21NFCB_NCI_I2C_MIN_SIZE);
} }
if (r != ST21NFCB_NCI_I2C_MIN_SIZE) { if (r != ST21NFCB_NCI_I2C_MIN_SIZE)
nfc_err(&client->dev, "cannot read ndlc & nci header\n");
return -EREMOTEIO; return -EREMOTEIO;
}
len = be16_to_cpu(*(__be16 *) (buf + 2)); len = be16_to_cpu(*(__be16 *) (buf + 2));
if (len > ST21NFCB_NCI_I2C_MAX_SIZE) { if (len > ST21NFCB_NCI_I2C_MAX_SIZE) {
......
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