diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2014-09-13 04:28:51 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-09-23 20:02:24 -0400 |
commit | bc6b8275924b8af3d10ac35df0579d94fa169680 (patch) | |
tree | ea497857c7622fffd78efeb537a88a0690ddc5f1 /drivers/nfc/st21nfcb | |
parent | 941ec5c6b02a93710c397e69b50671949f3b9dd3 (diff) |
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: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/st21nfcb')
-rw-r--r-- | drivers/nfc/st21nfcb/i2c.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/nfc/st21nfcb/i2c.c b/drivers/nfc/st21nfcb/i2c.c index 0b8f72176de0..c5d2427a3db2 100644 --- a/drivers/nfc/st21nfcb/i2c.c +++ b/drivers/nfc/st21nfcb/i2c.c | |||
@@ -156,10 +156,8 @@ static int st21nfcb_nci_i2c_read(struct st21nfcb_i2c_phy *phy, | |||
156 | r = i2c_master_recv(client, buf, ST21NFCB_NCI_I2C_MIN_SIZE); | 156 | r = i2c_master_recv(client, buf, ST21NFCB_NCI_I2C_MIN_SIZE); |
157 | } | 157 | } |
158 | 158 | ||
159 | if (r != ST21NFCB_NCI_I2C_MIN_SIZE) { | 159 | if (r != ST21NFCB_NCI_I2C_MIN_SIZE) |
160 | nfc_err(&client->dev, "cannot read ndlc & nci header\n"); | ||
161 | return -EREMOTEIO; | 160 | return -EREMOTEIO; |
162 | } | ||
163 | 161 | ||
164 | len = be16_to_cpu(*(__be16 *) (buf + 2)); | 162 | len = be16_to_cpu(*(__be16 *) (buf + 2)); |
165 | if (len > ST21NFCB_NCI_I2C_MAX_SIZE) { | 163 | if (len > ST21NFCB_NCI_I2C_MAX_SIZE) { |