NFC: nxp-nci: don't print header length mismatch on i2c error
authorMichael Walle <michael@walle.cc>
Mon, 27 Jun 2022 17:06:43 +0000 (19:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jul 2022 19:24:35 +0000 (21:24 +0200)
commit8ab067462e09e0152c4ad2467c0c719d78f53583
tree84eb094aceacf4a2a9224395593ab0116c118144
parent833ecd0eae76eadf81d6d747bb5bc992d1151867
NFC: nxp-nci: don't print header length mismatch on i2c error

[ Upstream commit 9577fc5fdc8b07b891709af6453545db405e24ad ]

Don't print a misleading header length mismatch error if the i2c call
returns an error. Instead just return the error code without any error
message.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nfc/nxp-nci/i2c.c