From: Zeeshan Ahmad <zeeshanahmad022019@gmail.com>
To: Dan Carpenter <dan.carpenter@linaro.org>,
Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org, kernel-janitors@vger.kernel.org,
linux-kernel@vger.kernel.org,
Zeeshan Ahmad <zeeshanahmad022019@gmail.com>
Subject: Re: [PATCH] usb: dwc3: qcom: simplify error check in dwc3_qcom_find_num_ports()
Date: Sat, 21 Feb 2026 15:41:15 +0500 [thread overview]
Message-ID: <20260221104115.4400-1-zeeshanahmad022019@gmail.com> (raw)
In-Reply-To: <aZgYKin2nP19CZyL@stanley.mountain>
Hi Dan,
You are correct. I ran Smatch on dwc3-qcom-legacy.c and it did not produce
a warning for these lines. I identified this issue through a manual grep
search for the pattern 'platform_get_irq.* <= 0' across the drivers
directory.
It appears there are several dozen instances of this pattern that Smatch
currently misses because the '<= 0' check includes a valid negative
error check alongside the redundant zero check.
Thank you for the technical background on why Smatch handles it this way.
Regards,
Zeeshan
next prev parent reply other threads:[~2026-02-21 10:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-18 11:01 Zeeshan Ahmad
2026-02-19 22:55 ` Thinh Nguyen
2026-02-20 8:15 ` Dan Carpenter
2026-02-21 10:41 ` Zeeshan Ahmad [this message]
2026-02-24 0:41 ` Thinh Nguyen
2026-02-24 6:44 ` Zeeshan Ahmad
2026-02-25 0:10 ` Thinh Nguyen
2026-02-25 6:42 ` [PATCH v2] " Zeeshan Ahmad
2026-02-25 6:51 ` [PATCH v3] " Zeeshan Ahmad
2026-02-26 2:14 ` Thinh Nguyen
2026-02-24 7:32 [PATCH] " Zeeshan Ahmad
2026-02-25 0:06 ` Thinh Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260221104115.4400-1-zeeshanahmad022019@gmail.com \
--to=zeeshanahmad022019@gmail.com \
--cc=Thinh.Nguyen@synopsys.com \
--cc=dan.carpenter@linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®