diff options
| author | Wen Yang <[email protected]> | 2018-12-11 12:20:46 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-12-14 13:36:38 -0800 |
| commit | 390de1940441a72625283098dd0d9303d0ceb8fb (patch) | |
| tree | fe816e47d8174b3d0f99110f4ac2460968e3aa5c /tools/perf/scripts/python/stackcollapse.py | |
| parent | 6342ca644713601b42dcb8f35e3751afc0943373 (diff) | |
net/ibmvnic: Remove tests of member address
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:
>>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 <[email protected]>
CC: Benjamin Herrenschmidt <[email protected]>
CC: Paul Mackerras <[email protected]>
CC: Michael Ellerman <[email protected]>
CC: Thomas Falcon <[email protected]>
CC: John Allen <[email protected]>
CC: "David S. Miller" <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions