usb: remove dead code in dwc3_gadget_get_irq
authorYalong Zou <yalongz@hust.edu.cn>
Thu, 9 Mar 2023 15:08:15 +0000 (23:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Mar 2023 11:14:14 +0000 (12:14 +0100)
commit4fa1387261e725a418066f8f46ea87a6ba0e5be1
treea2611c1dd627b2930002854416a363cbe2cd4386
parent3754c41c76867e41fe720555dc186ba4b3cccad9
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>
drivers/usb/dwc3/gadget.c