OMAP: DSS2: OMAPFB: Remove redundant rotate range check
Unsigned rotate can never be less than zero. Found by Coverity. Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
This commit is contained in:
parent
9325588757
commit
86f2d7dd72
|
@ -683,7 +683,7 @@ int check_fb_var(struct fb_info *fbi, struct fb_var_screeninfo *var)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (var->rotate < 0 || var->rotate > 3)
|
if (var->rotate > 3)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (check_fb_res_bounds(var))
|
if (check_fb_res_bounds(var))
|
||||||
|
|
Loading…
Reference in New Issue