diff options
author | 2022-09-26 21:59:21 +0800 | |
---|---|---|
committer | 2022-09-27 10:36:36 +0200 | |
commit | 29afbe5f5afc2f724b8aef2d11fbe6a7ee48997e (patch) | |
tree | 7994bda5fa2f9389f4c60543e38bd162f29762fe /drivers/usb/phy/phy-generic.c | |
parent | usb: cdc-wdm: Use skb_put_data() instead of skb_put/memcpy pair (diff) | |
download | wireguard-linux-29afbe5f5afc2f724b8aef2d11fbe6a7ee48997e.tar.xz wireguard-linux-29afbe5f5afc2f724b8aef2d11fbe6a7ee48997e.zip |
usb: cdns3: remove dead code
Smatch reports the following error:
drivers/usb/cdns3/cdns3-plat.c:113 cdns3_plat_probe() warn:
platform_get_irq() does not return zero
From the document, platform_get_irq_byname_optional only returns
non-zero value, and negative value on failure.
Fix this by removing the zero value checking.
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Link: https://lore.kernel.org/r/20220926135922.24541-1-dzm91@hust.edu.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/phy/phy-generic.c')
0 files changed, 0 insertions, 0 deletions