Thread (3 messages) 3 messages, 3 authors, 2025-08-15

Re: [PATCH net-next] nfc: pn533: Delete an unnecessary check

From: Krzysztof Kozlowski <krzk@kernel.org>
Date: 2025-08-13 08:13:27
Also in: kernel-janitors, lkml

On 13/08/2025 07:51, Dan Carpenter wrote:
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 <redacted>
---
 drivers/nfc/pn533/pn533.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
Reviewed-by: Krzysztof Kozlowski <redacted>

Best regards,
Krzysztof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help