aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorFabio M. De Francesco <[email protected]>2022-04-02 16:06:57 +0200
committerGreg Kroah-Hartman <[email protected]>2022-04-04 07:33:49 +0200
commit28f7545d9f08f49d02e02fc1ee556161bfa95a5e (patch)
tree290cf78e33452edfe7fe62559ad7d76c8ffb00e1 /tools/perf/scripts/python/netdev-times.py
parente25abea603179b0204ba9487d7f123b8642e4741 (diff)
staging: r8188eu: Remove redundant code from rtw_free_netdev()
In rtw_free_netdev() there are two redundant tests. The first checks for a valid pointer to a "struct net_device". This pointer is the argument of rtw_free_netdev(). The two callers of this function already test this parameter immediatelly before the calls. The second checks for a valid pointer to a "struct rtw_netdev_priv_indicator". This pointer is always valid and, even if it were not, vfree() is a no-op on NULL pointers. Therefore the above-mentioned two "if" statements are unnecessary and redundant. For this reason, remove these two tests. After removing these tests there is no more need of the "RETURN" label. Therefore, remove also the "RETURN" label. Cc: Pavel Skripkin <[email protected]> Cc: Martin Kaiser <[email protected]> Signed-off-by: Fabio M. De Francesco <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions