]> git.baikalelectronics.ru Git - kernel.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 18:59:25 +0000 (20:59 +0200)
commit06180e7b64c796389cf7a74c8e1282df1f5bb061
tree1e6dd7590eebe154063e22ae96746cb63077f721
parentc435b7bb1e396c32802f945b7b25de624fc83ffa
NFC: nxp-nci: don't print header length mismatch on i2c error

[ Upstream commit 7eed5bb8220eaa016cf8a0ac11bc6d4e1ac8979c ]

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