[PATCH v2] thermal: bcm2835: Fix error code in 'bcm2835_thermal_probe'
From: Stefan Wahren <hidden>
Date: 2017-06-23 20:26:41
Also in:
linux-pm, lkml
From: Stefan Wahren <hidden>
Date: 2017-06-23 20:26:41
Also in:
linux-pm, lkml
Christophe JAILLET [off-list ref] hat am 23. Juni 2017 um 21:44 geschrieben: 'tz' is a valid pointer at this point, so calling PTR_ERR on it is pointless. This 'err = PTR_ERR(tz)' looks like a cut'n'paste from a few lines above. So remove it. 'err' is already the error we want to report. Signed-off-by: Christophe JAILLET <redacted>
Thanks, but Dan Carpenter already send a fix for this.