Re: [PATCH net-next] net: phy: phylink: Handle NULL fwnode_handle

2017-12-15 Thread David Miller
From: Florian Fainelli Date: Thu, 14 Dec 2017 15:57:58 -0800 > Unlike the various of_* routines to fetch properties, fwnode_* routines can > have an early check against a NULL fwnode_handle reference which makes them > return -EINVAL (see fwnode_call_int_op), thus making it virtually impossible

Re: [PATCH net-next] net: phy: phylink: Handle NULL fwnode_handle

2017-12-14 Thread Russell King - ARM Linux
On Thu, Dec 14, 2017 at 03:57:58PM -0800, Florian Fainelli wrote: > Unlike the various of_* routines to fetch properties, fwnode_* routines can > have an early check against a NULL fwnode_handle reference which makes them > return -EINVAL (see fwnode_call_int_op), thus making it virtually impossibl

[PATCH net-next] net: phy: phylink: Handle NULL fwnode_handle

2017-12-14 Thread Florian Fainelli
Unlike the various of_* routines to fetch properties, fwnode_* routines can have an early check against a NULL fwnode_handle reference which makes them return -EINVAL (see fwnode_call_int_op), thus making it virtually impossible to differentiate what type of error is going on. Have an early check