diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-06-14 12:13:27 +0300 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2017-06-30 16:46:11 -0700 |
commit | 1fe3854a83b580727c9464b37b62ba77ead1d6f6 (patch) | |
tree | bd26bcfecef836c1340f1fb594a9e1650202d186 /drivers/thermal/broadcom/bcm2835_thermal.c | |
parent | 919054fdfc8adf58c5512fe9872eb53ea0f5525d (diff) | |
download | talos-op-linux-1fe3854a83b580727c9464b37b62ba77ead1d6f6.tar.gz talos-op-linux-1fe3854a83b580727c9464b37b62ba77ead1d6f6.zip |
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: bcb7dd9ef206 ("thermal: bcm2835: add thermal driver for bcm2835 SoC")
Acked-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal/broadcom/bcm2835_thermal.c')
-rw-r--r-- | drivers/thermal/broadcom/bcm2835_thermal.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/thermal/broadcom/bcm2835_thermal.c b/drivers/thermal/broadcom/bcm2835_thermal.c index 0ecf80890c84..e6863c841662 100644 --- a/drivers/thermal/broadcom/bcm2835_thermal.c +++ b/drivers/thermal/broadcom/bcm2835_thermal.c @@ -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); |