From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: [PATCH] phy: Elimination the forced speed reduction algorithm. Date: Fri, 15 Mar 2013 05:48:49 -0700 Message-ID: <1363351729.2433.4.camel@joe-AO722> References: <1363257652-8255-1-git-send-email-kapranoff@inbox.ru> <20130315.083524.1244515166306242265.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: kapranoff@inbox.ru, netdev@vger.kernel.org, bhutchings@solarflare.com, peppe.cavallaro@st.com, bruce.w.allan@intel.com, linux-kernel@vger.kernel.org To: David Miller Return-path: In-Reply-To: <20130315.083524.1244515166306242265.davem@davemloft.net> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Fri, 2013-03-15 at 08:35 -0400, David Miller wrote: > From: Kirill Kapranov > 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)