[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100331085024.GG4837@datarespons.se>
Date: Wed, 31 Mar 2010 10:50:25 +0200
From: Anders Darander <anders.darander@...arespons.se>
To: Patrick McHardy <kaber@...sh.net>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] MACB: Set PHY address in kernel parameters
* Patrick McHardy <kaber@...sh.net> [100331 10:29]:
> Anders Darander wrote:
> > + if (phy_addr >= PHY_MAX_ADDRESS)
> > + phydev = phy_find_first(bp->mii_bus);
> > + else
> > + phydev = bp->mii_bus->phy_map[phy_addr];
> This looks like you need to use an unsigned to avoid negative
> indices.
Thanks for spotting this. That made me find that I'd also been inconsistent with the variable and module parameter declarations.
A new version, V2, of the patch has been sent.
Best regards,
Anders Darander
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists