Commit 1fe3854a authored by Dan Carpenter's avatar Dan Carpenter Committed by Eduardo Valentin

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: bcb7dd9e ("thermal: bcm2835: add thermal driver for bcm2835 SoC")
Acked-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 919054fd
...@@ -245,7 +245,6 @@ static int bcm2835_thermal_probe(struct platform_device *pdev) ...@@ -245,7 +245,6 @@ static int bcm2835_thermal_probe(struct platform_device *pdev)
*/ */
err = tz->ops->get_trip_temp(tz, 0, &trip_temp); err = tz->ops->get_trip_temp(tz, 0, &trip_temp);
if (err < 0) { if (err < 0) {
err = PTR_ERR(tz);
dev_err(&pdev->dev, dev_err(&pdev->dev,
"Not able to read trip_temp: %d\n", "Not able to read trip_temp: %d\n",
err); err);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment