Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3359imd; Fri, 26 Oct 2018 04:12:18 -0700 (PDT) X-Google-Smtp-Source: AJdET5eWDZLp67MyXAxM/Wnnwvd4OQP8v25D9/sU8tXDAq5ycWrlEZ0tj3SR3DWXnQKSK6HmUc5Q X-Received: by 2002:a65:42c2:: with SMTP id l2-v6mr2922607pgp.139.1540552338869; Fri, 26 Oct 2018 04:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540552338; cv=none; d=google.com; s=arc-20160816; b=w/yay6OKEvqxWv86VgU3QEw8bdx6TTheiwyqauth4e5k+gXKV9erH5Ry7irIkOUCQS v3bLedaQ6QW3tfCl9yGkQv6la1Xp0lC68QJrX/6rgCWbjLS1JDFdZAV+rxcI3cT1h+iD MMxUHxO8fvPCJPSTM3CUkED6iKO3pRWMVMCCBswKsksgLBi+sg1oZbvbO3UlGEQK/xzS OuNUCCyFYV7br79JrCFxW/fP3Rgt08/TnXsmRuNrhhgfAIf5EynTaEdr7uyzjLJyWRGX 2MCNBZjVuDE8X672R3qgNbR9fNFnphlrW16ZD9rWP+HPuj+cj25C+3fCZli0lpDbIkN5 gPUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Sk3aqzbcH+P51a7Z1ePWGGB2+48CcYPa0UIpdakUXBM=; b=PbX5oSL3yH7KfaKsXRH6PTIXXAGas6lWJMGRW6Yk8QWForNigm6En201UTt3OisvRZ jiQPa4OF3+mry6mfwTOhhHK5rW6l1PjEQ+Ln3LocXzZPKDruG56hgSn2tTZR2SmUfzRU K1JgfcaXOyAvyuxS9pyjRtvhGYqmnVfqzJ27mXBTI5ZuaV63kQlov0caNSyGGMEcJLxo ok9rj6nSoGhZgu04iAwO4nXH2VsXprZYtQmktepcvht/HYBOHxCWqj5iauU/YVfJiM6l 3qyrMFTssoPzRFifPwHi4w5XFldTut3PLNZL5Qh3m3sK5NUJm+gxhI70pYHaKkqbaFBd CQxQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l63-v6si357239plb.385.2018.10.26.04.12.02; Fri, 26 Oct 2018 04:12:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727576AbeJZTrz (ORCPT + 99 others); Fri, 26 Oct 2018 15:47:55 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:45801 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727224AbeJZTry (ORCPT ); Fri, 26 Oct 2018 15:47:54 -0400 Received: by mail-ed1-f65.google.com with SMTP id t10-v6so913288eds.12 for ; Fri, 26 Oct 2018 04:11:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Sk3aqzbcH+P51a7Z1ePWGGB2+48CcYPa0UIpdakUXBM=; b=S2/IVOZlnhOsT3AfHKZ7LIqwHZh1Vz6jiTz7fOUboCK4WtYjMxJFDrbERq94h5n7XI awNkDWDP98CK7gpJMw2azRWf53D5ewAi01JbGA//524sJ7OexgS6h3lvRGvZ5fagmyUn 4Mlb18dOZtGf2MA9ATWCT86y6HtYad8DIK+mu2ABDA2KF1gkdmhbJfQY7U3F01nF6JNp zrXLGENVghq2aP/cmEHR9vRdRttb54cqlfoLdJ9E70jHryKe1eDiGt2ZgKRqnY+o7Wsg 7wzAvz0ttD8ezzgSQfEfeCFHtagYGZBWDCzZaVOXyG7PJVSOy98rvLI2z+hpAH8HRNq1 2rCw== X-Gm-Message-State: AGRZ1gLsRjMhDFNw8gQxaTQXVUGE4cXOnenW6rsZQ88/z5MySIIStnwg c9A8BQ9R1Dst3vyIcv0ajcLw/A== X-Received: by 2002:a17:906:1141:: with SMTP id i1-v6mr2119089eja.110.1540552273228; Fri, 26 Oct 2018 04:11:13 -0700 (PDT) Received: from shalem.localdomain (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id g6-v6sm1356856edc.38.2018.10.26.04.11.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Oct 2018 04:11:12 -0700 (PDT) Subject: Re: [PATCH v2] staging: vboxvideo: Remove unnecessary parentheses To: Shayenne da Luz Moura , Greg Kroah-Hartman , Michael Thayer Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com References: <20181023174304.iq4ra7vafwujr3ex@smtp.gmail.com> From: Hans de Goede Message-ID: <70a66c27-eced-89ae-79fc-af3d0aa06311@redhat.com> Date: Fri, 26 Oct 2018 13:11:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20181023174304.iq4ra7vafwujr3ex@smtp.gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 23-10-18 19:43, Shayenne da Luz Moura wrote: > 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 Patch looks good to me: Reviewed-by: Hans de Goede Regards, Hans > --- > 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; >