aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorMingxuan Xiang <[email protected]>2023-03-24 14:09:34 +0800
committerGreg Kroah-Hartman <[email protected]>2023-03-29 09:02:25 +0200
commitdb2c2b161d4a8f4a81e6f643848b1531517a67a5 (patch)
tree0df6102bda4bd2f870c8ce75a1d57bb3fbf96c88 /tools/perf/scripts/python/netdev-times.py
parentc03ff66dc0e0cbad9ed0c29500843e1da8533118 (diff)
usb: dwc3: host: remove dead code in dwc3_host_get_irq()
According to the description of platform_get_irq() * Return: non-zero IRQ number on success, negative error number on failure. and the code, platform_get_irq() will return -EINVAL instead of IRQ0. So platform_get_irq() no longer returns 0, there is no need to check whether the return value is 0. Found by Smatch: drivers/usb/dwc3/host.c:60 dwc3_host_get_irq() warn: platform_get_irq() does not return zero Signed-off-by: Mingxuan Xiang <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Acked-by: Thinh Nguyen <[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