can: avoid double unlikely() notation when using IS_ERR()
Subsystems (3)
PATCH 1/1 can: avoid double unlikely() notation when using IS_ERR()
The definition of IS_ERR() already applies the unlikely() notation when checking the error status of the passed pointer. For this reason there is no need to have the same notation outside of IS_ERR() itself.
Clean up code by removing redundant notation.
Signed-off-by Antonio Quartulli <[email protected]>
--- drivers/net/can/rx-offload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/can/rx-offload.c +1 -1
@@ -157,7 +157,7 @@ can_rx_offload_offload_one(struct can_rx_offload *offload, unsigned int n)/* There was a problem reading the mailbox, propagate * error value. */ -if (unlikely (IS_ERR (skb))) { +if (IS_ERR (skb)) { offload->dev->stats.rx_dropped++; offload->dev->stats.rx_fifo_errors++;
Signature · 1 line
2.29.2