]> www.infradead.org Git - users/dwmw2/linux.git/commit
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:20:14 +0000 (21:20 +0200)
commitde876f36f9a34eaa2fbcfab0123975970f9db1fa
treece62b13991a6e10813f157e96139670784b5439e
parentefa78f2ae363428525fb4981bb63c555ee79f3c7
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