projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fec3624
)
thermal: tegra: remove null check for dev pointer
author
Nicolin Chen
<nicoleotsuka@gmail.com>
Tue, 5 Sep 2017 07:41:16 +0000
(
00:41
-0700)
committer
Eduardo Valentin
<edubezval@gmail.com>
Wed, 1 Nov 2017 02:32:13 +0000
(19:32 -0700)
The dev pointer is going through a null check after a dereference.
So this patch removes that useless check since the driver does not
pass a null dev pointer in any case.
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/tegra/soctherm.c
patch
|
blob
|
history
diff --git
a/drivers/thermal/tegra/soctherm.c
b/drivers/thermal/tegra/soctherm.c
index 7d2db23d71a32deab7c524cb0c9ad8466886018a..075db1de5e539df3d0e4a6ac8984081a57d66bb3 100644
(file)
--- a/
drivers/thermal/tegra/soctherm.c
+++ b/
drivers/thermal/tegra/soctherm.c
@@
-483,7
+483,7
@@
static int throttrip_program(struct device *dev,
unsigned int throt;
u32 r, reg_off;
- if (!
dev || !
sg || !stc || !stc->init)
+ if (!sg || !stc || !stc->init)
return -EINVAL;
temp = enforce_temp_range(dev, trip_temp) / ts->soc->thresh_grain;