thermal: tegra: fix static checker warning
authorWei Ni <wni@nvidia.com>
Wed, 6 Apr 2016 09:48:04 +0000 (17:48 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 17 May 2016 14:28:31 +0000 (07:28 -0700)
commitf350098070e36e1f51f925264146eff18a4e42dd
tree4043677e3084d53a5d185365166103513874f407
parenta977c41ec65bbdc5000a130372adba1f85c86833
thermal: tegra: fix static checker warning

There has a static checker warning:
warn: variable dereferenced before check 'dev' (see line 222)

Since check 'dev' is unnecessary, so remove this check.

Fixes: ee6d79f202a4 ("thermal: tegra: add thermtrip function")
Signed-off-by: Wei Ni <wni@nvidia.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/tegra/soctherm.c