[PATCH] staging: vboxvideo: Removed unnecessary parentheses

From: Shayenne da Luz Moura
Date: Mon Oct 22 2018 - 18:31:34 EST


This patch fixes the checkpatch.pl check:

vbox_main.c:119: CHECK: Unnecessary parentheses around 'rects[i].x2 <
crtc->x'
vbox_main.c:119: CHECK: Unnecessary parentheses around 'rects[i].y2 <
crtc->y'

Signed-off-by: Shayenne da Luz Moura <shayenneluzmoura@xxxxxxxxx>
---
drivers/staging/vboxvideo/vbox_main.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/vboxvideo/vbox_main.c b/drivers/staging/vboxvideo/vbox_main.c
index 429f6a453619..10a862674789 100644
--- a/drivers/staging/vboxvideo/vbox_main.c
+++ b/drivers/staging/vboxvideo/vbox_main.c
@@ -116,10 +116,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 + crtc->hwmode.hdisplay) ||
- (rects[i].y1 > crtc->y + crtc->hwmode.vdisplay) ||
- (rects[i].x2 < crtc->x) ||
- (rects[i].y2 < crtc->y))
+ if (rects[i].x1 > crtc->x + crtc->hwmode.hdisplay ||
+ rects[i].y1 > crtc->y + crtc->hwmode.vdisplay ||
+ rects[i].x2 < crtc->x ||
+ rects[i].y2 < crtc->y)
continue;

cmd_hdr.x = (s16)rects[i].x1;
--
2.19.1