diff options
| author | Yalong Zou <yalongz@hust.edu.cn> | 2023-03-09 18:08:15 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-16 14:14:14 +0300 |
| commit | 4fa1387261e725a418066f8f46ea87a6ba0e5be1 (patch) | |
| tree | a2611c1dd627b2930002854416a363cbe2cd4386 /scripts | |
| parent | 3754c41c76867e41fe720555dc186ba4b3cccad9 (diff) | |
| download | linux-4fa1387261e725a418066f8f46ea87a6ba0e5be1.tar.xz | |
usb: remove dead code in dwc3_gadget_get_irq
platform_get_irq() only return non-zero irq number on success, or
negative error number on failure.
There is no need to check the return value of platform_get_irq()
to determine the return value of dwc3_gadget_get_irq(), removing
them to solve this problem.
Signed-off-by: Yalong Zou <yalongz@hust.edu.cn>
Signed-off-by: Dongliang Mu <dzm91@hust.edu.cn>
Link: https://lore.kernel.org/r/20230309150815.1884260-1-yalongz@hust.edu.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
