mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
thermal: bcm2835: fix an error code in probe()
This causes a static checker because we're passing a valid pointer to
PTR_ERR(). "err" is already the correct error code, so we can just
delete this line.
Fixes: bcb7dd9ef2 ("thermal: bcm2835: add thermal driver for bcm2835 SoC")
Acked-by: Stefan Wahren <[email protected]>
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Eduardo Valentin <[email protected]>
This commit is contained in:
parent
919054fdfc
commit
1fe3854a83
1 changed files with 0 additions and 1 deletions
|
|
@ -245,7 +245,6 @@ static int bcm2835_thermal_probe(struct platform_device *pdev)
|
|||
*/
|
||||
err = tz->ops->get_trip_temp(tz, 0, &trip_temp);
|
||||
if (err < 0) {
|
||||
err = PTR_ERR(tz);
|
||||
dev_err(&pdev->dev,
|
||||
"Not able to read trip_temp: %d\n",
|
||||
err);
|
||||
|
|
|
|||
Loading…
Reference in a new issue