Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3757317ima; Tue, 23 Oct 2018 10:45:35 -0700 (PDT) X-Google-Smtp-Source: AJdET5fPFOocdaer1bSuTt8wDB4QW9s0GtmuK0EF2gwh9TkCZX8b/J0da8F9TJsXcE8x6KqMiu0C X-Received: by 2002:a17:902:6184:: with SMTP id u4-v6mr8167555plj.291.1540316735231; Tue, 23 Oct 2018 10:45:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540316735; cv=none; d=google.com; s=arc-20160816; b=vn7HbjUHbpzh+WCzThWBOXcObIqjO2DRsG4UbrdanQfKOhw4ukuEAZpGMZSijjUxPo aj8toYCfbYKhDAZVOG0qAquzSGiE4VT4XT6jClAVfpq/GTNUW1pdVUSQPcny8ReFXzkA t6kvO9ilDRGfAyS+/9U8QrTzKdEuWkfpvhX7wcum3OzF+bOtP8Ip9oFZRv0LfdjCQjJH dI6PCG1FDe0p9vc7YkMwmrWD7VPfximWWmEMO98AaqyIhejxN5ckpAE07KPhuCZZjili iYrTOnwoxFjV9Hf+v9ERrHnLDHeEhYoprR1u7265FE0jVcXTzKkgGaCEGGi3CZgl8Vbj WlTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=LTQBbN7v01p06gTRf7aJbSH9y9Y2K/1hrzJaEfI2w6g=; b=dxvWFd+CbzTTGvyFevcFfW5vWr6zRujsUbMySur4vvouqb5nhoE+UsjYZK8WJtgtGh HsqCpitODvtsR6d71h/ZB5Sxvlnl1iVGet1neEWidhvDx8oZf/uEwX4UME51FO1GbROS O7dBmRppABJQKwT0d7NXCUWziQBvIKtElF8UPWNoU4yhS3bVw2WG4ZgIbakDD8cIh8Q+ 4PNqliCXAAF/7gzM8PC/s9x4qSgYxf5jP9mwgilYv5B5XQVqvhuqY0VaMT6HUEAsnNGO ACdesuxYuP2SSbMmFvho0xJGk6DAek0csedVcvMznZMvUDi3dnp3rEqyO93nHsJ9qfuG VCkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f3moeBgi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2-v6si1950128plk.350.2018.10.23.10.45.19; Tue, 23 Oct 2018 10:45:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f3moeBgi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728627AbeJXCHb (ORCPT + 99 others); Tue, 23 Oct 2018 22:07:31 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:46371 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726865AbeJXCHb (ORCPT ); Tue, 23 Oct 2018 22:07:31 -0400 Received: by mail-qk1-f193.google.com with SMTP id a193-v6so1368229qkc.13 for ; Tue, 23 Oct 2018 10:43:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=LTQBbN7v01p06gTRf7aJbSH9y9Y2K/1hrzJaEfI2w6g=; b=f3moeBgiXEmlRXMxcVbbeSMnAbr01S7kNzC5HKP5fox0DzOIjOUGgkz+CAlO9nYGE0 nazgPsB7YukROpfOZqpQB46jVOskf1hnPz4RbO+qX08GNcrpwg9wSTX21z0dyG0ydgar nQRhg8By8CWxmnytSyS+IZoFrX0hd7ndSZ475NZQBVydZ/q7cDJTUrrEz11OCo9rFWR5 46LSBIjpnjz2dudLX13I+5vc8ddnVw+knzY2FruNQ7Tnf0wpELuKgVV0ZjaoCw5+o2Op 5+gFUw6OvlDxUJdYheI1pvjOybgDpmIj4lKtnAKBriO2jxjfBeXnGClFVcB4E8DLzPdN 1Xjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=LTQBbN7v01p06gTRf7aJbSH9y9Y2K/1hrzJaEfI2w6g=; b=TVNNjLijXAqNBbs7THNuRItiwA4c/heg1DIgxrwOyZkx15DbSTd4FPBflPAj6CZFv4 hJoKs1JeSYiBI8slMLlO/vlLoUGxrT9o8K153EJ0AWUhR4Xy+WRpx7VXqWQPPgOxY2az wkU2Gqp2IUOhHGN1QXAgR61RXA7daUFNneTUlPPSmO3QCU6m3EuNeTSGy3P3hytRnafw G52EpyuiIGmNG8XlHQ3wntWgLpC/eWstfj9pcWtP+XBm8PyYGjHVUsyJnVo5GbGjLEOa ga/9TQqrFvTeW5MBvApSkDzhWEc4rdRrLtKJeCzTrHcR2Wqh+mCkSo+TT652oduTBakw lvjg== X-Gm-Message-State: AGRZ1gLk+ozyY175s1k+5oE7sGwrrQX7N++J4HithzRCrGGiQnDxch8s ttEt9xnYeVBZDtgwQ5zB7vQ= X-Received: by 2002:a37:15a5:: with SMTP id 37mr6580495qkv.292.1540316588896; Tue, 23 Oct 2018 10:43:08 -0700 (PDT) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id z188-v6sm1218662qkz.66.2018.10.23.10.43.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Oct 2018 10:43:08 -0700 (PDT) Date: Tue, 23 Oct 2018 14:43:04 -0300 From: Shayenne da Luz Moura To: Greg Kroah-Hartman , Hans de Goede , Michael Thayer Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com Subject: [PATCH v2] staging: vboxvideo: Remove unnecessary parentheses Message-ID: <20181023174304.iq4ra7vafwujr3ex@smtp.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: Shayenne da Luz Moura --- Changes in v2: - Make the commit message more clearer. 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