Re: [PATCH] phy: Elimination the forced speed reduction algorithm.
From: Joe Perches
Date: Fri Mar 15 2013 - 08:48:55 EST
On Fri, 2013-03-15 at 08:35 -0400, David Miller wrote:
> From: Kirill Kapranov <kapranoff@xxxxxxxx>
> Date: Thu, 14 Mar 2013 14:40:52 +0400
>
> > @@ -867,7 +821,6 @@ void phy_state_machine(struct work_struct *work)
> > netif_carrier_on(phydev->attached_dev);
> > } else {
> > if (0 == phydev->link_timeout--) {
> > - phy_force_reduction(phydev);
> > needs_aneg = 1;
> > }
>
> This is not a single-statement basic block, and therefore you
> should remove the surrounding braces.
s/not/now/
The phy code also uses non standard kernel style tests like
if (CONSTANT == variable)
instead of
if (variable == CONSTANT)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/