summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorZeeshan Ahmad <zeeshanahmad022019@gmail.com>2026-02-25 11:51:57 +0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-03-11 15:23:37 +0100
commit7afa83a7a8bf3f1d6984c29fe77a2fb44d9f049d (patch)
treef62e8526b2ae0fdfbf8fb43dcbf492626335a7d3 /scripts/objdiff
parent9b91cafe8084d83c14d0303fc5897c4ff43122c0 (diff)
usb: dwc3: qcom: simplify error check in dwc3_qcom_find_num_ports()
The platform_get_irq_byname_optional() function returns a non-zero IRQ number on success and a negative error code on failure. It never returns zero. The current implementation in the modern dwc3-qcom driver checks for a return value less than or equal to zero. Since zero is not a valid return value, simplify the check to only look for negative error codes. This aligns the logic with the standard return contract of the platform IRQ APIs. Signed-off-by: Zeeshan Ahmad <zeeshanahmad022019@gmail.com> Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://patch.msgid.link/20260225065157.8952-1-zeeshanahmad022019@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions