aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2019-04-30 17:35:33 -0700
committerDavid S. Miller <[email protected]>2019-05-03 23:59:31 -0400
commite28441e2ea090a4751160a75e5b0d823116a92fb (patch)
treeeb40b757695b7beb6bca8d2c24996decff03b936 /scripts/gdb/linux/tasks.py
parenta27415decd84dac124c6185f1184b6c779d0a5ab (diff)
usbnet: ipheth: Remove unnecessary NULL pointer check
ipheth_carrier_set() is called from two locations. In ipheth_carrier_check_work(), its parameter 'dev' is set with container_of(work, ...) and can not be NULL. In ipheth_open(), dev is extracted from netdev_priv(net) and dereferenced before the call to ipheth_carrier_set(). The NULL pointer check of dev in ipheth_carrier_set() is therefore unnecessary and can be removed. Cc: Gustavo A. R. Silva <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions