Re: [PATCH RESEND] usb: dwc3: remove dead code in dwc3_otg_get_irq
From: Sergey Shtylyov
Date: Tue Apr 25 2023 - 04:57:36 EST
Hello!
On 4/24/23 1:59 PM, lihuya wrote:
> 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_otg_get_irq(), removing
> them to solve this problem.
I was going to submit such patch myself at some point... which
has never happened. :-/
> Signed-off-by: lihuya <lihuya@xxxxxxxxxxx>
Reviewed-by: Sergey Shtylyov <s.shtylyov@xxxxxx>
[...]
MBR, Sergey