]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfc: pn533: Delete an unnecessary check
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 13 Aug 2025 05:51:22 +0000 (08:51 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Aug 2025 00:33:20 +0000 (17:33 -0700)
commitc6f68f69416d0950965e5744489382ccebdc72b4
tree98106fc6fa4667b493a47618cb86737acf5a0546
parent34167f1a024d2c5abae0b0325a6d0b8257160f86
nfc: pn533: Delete an unnecessary check

The "rc" variable is set like this:

if (IS_ERR(resp)) {
rc = PTR_ERR(resp);

We know that "rc" is negative so there is no need to check.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/aJwn2ox5g9WsD2Vx@stanley.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/nfc/pn533/pn533.c