From: Jaeden Amero <jaeden.amero@ni.com>
To: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>,
Florian Fainelli <f.fainelli@gmail.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 3/3] net/phy: micrel: Center FLP timing at 16ms
Date: Fri, 05 Jun 2015 17:36:14 -0500 [thread overview]
Message-ID: <5572245E.4080000@ni.com> (raw)
In-Reply-To: <55721027.6030509@cogentembedded.com>
On 06/05/2015 04:09 PM, Sergei Shtylyov wrote:
>> @@ -441,6 +461,7 @@ static int ksz9031_config_init(struct phy_device
>> *phydev)
>> "txd2-skew-ps", "txd3-skew-ps"
>> };
>> static const char *control_skews[2] = {"txen-skew-ps",
>> "rxdv-skew-ps"};
>> + int result;
>
> You hardly need this variable...
>
>>
>> if (!of_node && dev->parent->of_node)
>> of_node = dev->parent->of_node;
>> @@ -462,7 +483,10 @@ static int ksz9031_config_init(struct phy_device
>> *phydev)
>> MII_KSZ9031RN_TX_DATA_PAD_SKEW, 4,
>> tx_data_skews, 4);
>> }
>> - return 0;
>> +
>> + result = ksz9031_center_flp_timing(phydev);
>> +
>> + return result;
>
> Why not just return directly?
>
Genius.
Thanks for the feedback. I'll post a v3.
prev parent reply other threads:[~2015-06-05 22:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-05 19:55 [PATCH v2 0/3] net/phy: micrel: Center FLP timing at 16ms Jaeden Amero
2015-06-05 19:55 ` [PATCH v2 1/3] net/phy: micrel: Be more const correct Jaeden Amero
2015-06-05 19:55 ` [PATCH v2 2/3] net/phy: micrel: Comment MMD address of extended registers Jaeden Amero
2015-06-05 19:55 ` [PATCH v2 3/3] net/phy: micrel: Center FLP timing at 16ms Jaeden Amero
2015-06-05 21:09 ` Sergei Shtylyov
2015-06-05 22:36 ` Jaeden Amero [this message]
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=5572245E.4080000@ni.com \
--to=jaeden.amero@ni.com \
--cc=f.fainelli@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sergei.shtylyov@cogentembedded.com \
/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