Thread (2 messages) read the whole thread 2 messages, 2 authors, 2018-12-14

Re: [PATCH] net/ibmvnic: Remove tests of member address

From: David Miller <davem@davemloft.net>
Date: 2018-12-14 21:37:00
Also in: lkml, netdev

From: Wen Yang <redacted>
Date: Tue, 11 Dec 2018 12:20:46 +0800
The driver was checking for non-NULL address.
- adapter->napi[i]

This is pointless as these will be always non-NULL, since the
'dapter->napi' is allocated in init_napi().
It is safe to get rid of useless checks for addresses to fix the
coccinelle warning:
quoted
quoted
drivers/net/ethernet/ibm/ibmvnic.c: test of a variable/field address
Since such statements always return true, they are redundant.

Signed-off-by: Wen Yang <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help