lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5572245E.4080000@ni.com>
Date:	Fri, 05 Jun 2015 17:36:14 -0500
From:	Jaeden Amero <jaeden.amero@...com>
To:	Sergei Shtylyov <sergei.shtylyov@...entembedded.com>,
	Florian Fainelli <f.fainelli@...il.com>,
	netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 3/3] net/phy: micrel: Center FLP timing at 16ms

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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ