Commit dff94010 authored by Shayenne da Luz Moura's avatar Shayenne da Luz Moura Committed by Greg Kroah-Hartman

staging: vboxvideo: Remove unnecessary parentheses

Remove unneeded parentheses around the arguments of ||. This reduces
clutter and code behave in the same way.
Change suggested by checkpatch.pl.

vbox_main.c:119: CHECK: Unnecessary parentheses around 'rects[i].x2 <
crtc->x'
Signed-off-by: default avatarShayenne da Luz Moura <shayenneluzmoura@gmail.com>
Acked-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 459b6785
......@@ -122,10 +122,10 @@ void vbox_framebuffer_dirty_rectangles(struct drm_framebuffer *fb,
struct vbva_cmd_hdr cmd_hdr;
unsigned int crtc_id = to_vbox_crtc(crtc)->crtc_id;
if ((rects[i].x1 > crtc_x + mode->hdisplay) ||
(rects[i].y1 > crtc_y + mode->vdisplay) ||
(rects[i].x2 < crtc_x) ||
(rects[i].y2 < crtc_y))
if (rects[i].x1 > crtc_x + mode->hdisplay ||
rects[i].y1 > crtc_y + mode->vdisplay ||
rects[i].x2 < crtc_x ||
rects[i].y2 < crtc_y)
continue;
cmd_hdr.x = (s16)rects[i].x1;
......
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