Skip to content

Commit

Permalink
NFC: st21nfcb: remove error output
Browse files Browse the repository at this point in the history
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: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Christophe Ricard authored and Samuel Ortiz committed Sep 24, 2014
1 parent 941ec5c commit bc6b827
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/nfc/st21nfcb/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

if (r != ST21NFCB_NCI_I2C_MIN_SIZE) {
nfc_err(&client->dev, "cannot read ndlc & nci header\n");
if (r != ST21NFCB_NCI_I2C_MIN_SIZE)
return -EREMOTEIO;
}

len = be16_to_cpu(*(__be16 *) (buf + 2));
if (len > ST21NFCB_NCI_I2C_MAX_SIZE) {
Expand Down

0 comments on commit bc6b827

Please sign in to comment.