Re: checkpatch: false positives for else after return

2016-07-18 Thread Joe Perches
On Mon, 2016-07-18 at 13:26 +0200, Thierry Reding wrote: > Hi, > > I've run across what I think is a false positive for checkpatch's > UNNECESSARY_ELSE check. The code that triggers it is in the > tegra_sor_probe() function in drivers/gpu/drm/tegra/sor.c. For > reference, here's the code: > >

checkpatch: false positives for else after return

2016-07-18 Thread Thierry Reding
Hi, I've run across what I think is a false positive for checkpatch's UNNECESSARY_ELSE check. The code that triggers it is in the tegra_sor_probe() function in drivers/gpu/drm/tegra/sor.c. For reference, here's the code: if (sor->soc->supports_hdmi) { sor->ops = &tegra_sor