[PATCH] drm/tegra: dpaux: Fix error handling

2016-11-07 Thread Thierry Reding
On Fri, Oct 28, 2016 at 11:09:45AM +0200, Christophe JAILLET wrote: > 'devm_pinctrl_register()' returns an error pointer or a valid handle. So > checking for NULL here is pointless and can never trigger. > > Check the returned value with IS_ERR instead and propagate this value as > done in the oth

[PATCH] drm/tegra: dpaux: Fix error handling

2016-10-31 Thread Jon Hunter
On 28/10/16 10:09, Christophe JAILLET wrote: > 'devm_pinctrl_register()' returns an error pointer or a valid handle. So > checking for NULL here is pointless and can never trigger. > > Check the returned value with IS_ERR instead and propagate this value as > done in the other functions which call

[PATCH] drm/tegra: dpaux: Fix error handling

2016-10-28 Thread Christophe JAILLET
'devm_pinctrl_register()' returns an error pointer or a valid handle. So checking for NULL here is pointless and can never trigger. Check the returned value with IS_ERR instead and propagate this value as done in the other functions which call 'devm_pinctrl_register()' Fixes: 0751bb5c44fe ("drm/t