From: Andy Shevchenko <andy.shevchenko@gmail.com>
To: Calvin Johnson <calvin.johnson@oss.nxp.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>,
Jeremy Linton <jeremy.linton@arm.com>,
Russell King - ARM Linux admin <linux@armlinux.org.uk>,
Jon <jon@solid-run.com>,
Cristi Sovaiala <cristian.sovaiala@nxp.com>,
Ioana Ciornei <ioana.ciornei@nxp.com>,
Andrew Lunn <andrew@lunn.ch>,
Madalin Bucur <madalin.bucur@oss.nxp.com>,
netdev <netdev@vger.kernel.org>,
linux.cj@gmail.com,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>
Subject: Re: [net-next PATCH v6 4/6] net: phy: introduce phy_find_by_mdio_handle()
Date: Mon, 13 Jul 2020 14:04:33 +0300 [thread overview]
Message-ID: <CAHp75VdhhADSatLyBm+F+aV8J280LVjwCJZh7YzAPk8xW_vzXg@mail.gmail.com> (raw)
In-Reply-To: <20200713060416.GB2540@lsv03152.swis.in-blr01.nxp.com>
On Mon, Jul 13, 2020 at 9:04 AM Calvin Johnson
<calvin.johnson@oss.nxp.com> wrote:
> On Sat, Jul 11, 2020 at 02:41:12PM -0700, Florian Fainelli wrote:
> > On 7/10/2020 11:55 PM, Calvin Johnson wrote:
...
> > > + err = fwnode_property_read_u32(fwnode, "phy-channel", &addr);
> > > + if (err)
> > > + return ERR_PTR(err);
> > > + if (addr < 0 || addr >= PHY_MAX_ADDR)
> >
> > Can an u32 ever be < 0?
>
> Will remove it.
Since it's harmless and we have a fix to shut the compiler up on this
kind of checks and Linus actually in favour of _seeing_ range checks
explicitly I think no need to drop, but it's up to you.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2020-07-13 11:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-11 6:55 [net-next PATCH v6 0/6] ACPI support for dpaa2 MAC driver Calvin Johnson
2020-07-11 6:55 ` [net-next PATCH v6 1/6] Documentation: ACPI: DSD: Document MDIO PHY Calvin Johnson
2020-07-11 6:55 ` [net-next PATCH v6 2/6] net: phy: introduce device_mdiobus_register() Calvin Johnson
2020-07-11 21:36 ` Florian Fainelli
2020-07-13 5:56 ` Calvin Johnson
2020-07-11 6:55 ` [net-next PATCH v6 3/6] net/fsl: use device_mdiobus_register() Calvin Johnson
2020-07-11 6:55 ` [net-next PATCH v6 4/6] net: phy: introduce phy_find_by_mdio_handle() Calvin Johnson
2020-07-11 21:41 ` Florian Fainelli
2020-07-13 6:04 ` Calvin Johnson
2020-07-13 11:04 ` Andy Shevchenko [this message]
2020-07-11 6:55 ` [net-next PATCH v6 5/6] phylink: introduce phylink_fwnode_phy_connect() Calvin Johnson
2020-07-11 21:37 ` Florian Fainelli
2020-07-11 6:56 ` [net-next PATCH v6 6/6] net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver Calvin Johnson
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=CAHp75VdhhADSatLyBm+F+aV8J280LVjwCJZh7YzAPk8xW_vzXg@mail.gmail.com \
--to=andy.shevchenko@gmail.com \
--cc=andrew@lunn.ch \
--cc=calvin.johnson@oss.nxp.com \
--cc=cristian.sovaiala@nxp.com \
--cc=f.fainelli@gmail.com \
--cc=ioana.ciornei@nxp.com \
--cc=jeremy.linton@arm.com \
--cc=jon@solid-run.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux.cj@gmail.com \
--cc=linux@armlinux.org.uk \
--cc=madalin.bucur@oss.nxp.com \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).