mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
thermal: exynos: Correct sanity check at exynos_report_trigger() function
Up till now, by mistake, wrong variable was tested against being NULL. Since exynos_report_trigger() is always called with valid p pointer, it is only necessary to check if a valid thermal zone device is passed. Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Lukasz Majewski <[email protected]> Signed-off-by: Eduardo Valentin <[email protected]>
This commit is contained in:
parent
d3a5247e53
commit
eccb601454
1 changed files with 2 additions and 2 deletions
|
|
@ -172,8 +172,8 @@ static void exynos_report_trigger(struct exynos_tmu_data *p)
|
|||
unsigned long temp;
|
||||
unsigned int i;
|
||||
|
||||
if (!p) {
|
||||
pr_err("Wrong temperature configuration data\n");
|
||||
if (!tz) {
|
||||
pr_err("No thermal zone device defined\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue