From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Subject: Re: [PATCH net-next v2 4/4] net: phy: remove unneeded parenthesis Date: Fri, 24 Jan 2014 02:59:02 +0400 Message-ID: <52E19EB6.5030302@cogentembedded.com> References: <1390508269-28769-1-git-send-email-f.fainelli@gmail.com> <1390508269-28769-5-git-send-email-f.fainelli@gmail.com> <52E199AA.7020200@cogentembedded.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev , David Miller , Joe Perches To: Florian Fainelli Return-path: Received: from mail-la0-f51.google.com ([209.85.215.51]:42369 "EHLO mail-la0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755582AbaAWW7A (ORCPT ); Thu, 23 Jan 2014 17:59:00 -0500 Received: by mail-la0-f51.google.com with SMTP id c6so1991647lan.38 for ; Thu, 23 Jan 2014 14:58:59 -0800 (PST) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Hello. On 24-01-2014 2:39, Florian Fainelli wrote: >>> Our if/else statement in phy_print_status() is only comprised of one >>> line for each, remove the parenthesis. >> I protest, the *if* arm is multi-line, though single statement. :-) >> Could we avoid changing that code to and fro during 3.14-rc1? > Is it that big of a problem? You should be clearer in the changelog, at least. :-) > Does that make checkpatch.pl unhappy, No, it doesn't. > does that make you unhappy? Kind of, as it was me who added {} in net-next, IIRC. > Since this is intentionally the last patch > in the series, it would be trivial for David to ignore it I suppose. Would be fine... >>> Signed-off-by: Florian Fainelli >>> --- >>> drivers/net/phy/phy.c | 5 ++--- >>> 1 file changed, 2 insertions(+), 3 deletions(-) >>> diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c >>> index 36fc6e1..59aa85e 100644 >>> --- a/drivers/net/phy/phy.c >>> +++ b/drivers/net/phy/phy.c >>> @@ -64,15 +64,14 @@ static const char *phy_speed_to_str(int speed) >>> */ >>> void phy_print_status(struct phy_device *phydev) >>> { >>> - if (phydev->link) { >>> + if (phydev->link) >>> netdev_info(phydev->attached_dev, >>> "Link is Up - %s/%s - flow control %s\n", >>> phy_speed_to_str(phydev->speed), >>> DUPLEX_FULL == phydev->duplex ? "Full" : "Half", >>> phydev->pause ? "rx/tx" : "off"); >>> - } else { >>> + else >>> netdev_info(phydev->attached_dev, "Link is Down\n"); >>> - } >>> } >>> EXPORT_SYMBOL(phy_print_status); WBR, Sergei