Commit 1fba81cc authored by Nicolin Chen's avatar Nicolin Chen Committed by Eduardo Valentin

thermal: tegra: remove null check for dev pointer

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: default avatarNicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent fec3624f
...@@ -483,7 +483,7 @@ static int throttrip_program(struct device *dev, ...@@ -483,7 +483,7 @@ static int throttrip_program(struct device *dev,
unsigned int throt; unsigned int throt;
u32 r, reg_off; u32 r, reg_off;
if (!dev || !sg || !stc || !stc->init) if (!sg || !stc || !stc->init)
return -EINVAL; return -EINVAL;
temp = enforce_temp_range(dev, trip_temp) / ts->soc->thresh_grain; temp = enforce_temp_range(dev, trip_temp) / ts->soc->thresh_grain;
......
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