提交 86f2d7dd 编写于 作者: J Jani Nikula 提交者: Tomi Valkeinen

OMAP: DSS2: OMAPFB: Remove redundant rotate range check

Unsigned rotate can never be less than zero. Found by Coverity.
Signed-off-by: NJani Nikula <ext-jani.1.nikula@nokia.com>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@nokia.com>
上级 93255887
......@@ -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;
if (check_fb_res_bounds(var))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册