[Intel-wired-lan] [PATCH v6] i40e: Look up MAC address in Open Firmware or IDPROM

Andy Shevchenko andy.shevchenko at gmail.com
Thu Nov 5 19:32:57 UTC 2015


On Thu, Nov 5, 2015 at 8:31 PM, David Miller <davem at davemloft.net> wrote:
> From: Andy Shevchenko <andy.shevchenko at gmail.com>
> Date: Thu, 5 Nov 2015 20:13:21 +0200
>
>> What about
>>
>> if (!addr)
>>  return -ENODATA;
>
> I totally disagree.  of_get_phy_mode() and other similar attribute
> probing mechanisms use -ENODEV.

Okay, then just
if (!addr)
 return -ENODEV;

-- 
With Best Regards,
Andy Shevchenko


More information about the Intel-wired-lan mailing list