Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2784688ima; Mon, 22 Oct 2018 16:11:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV61LoYFwZ9PfjtOpExJOdhdhkkJ+46TWy0/sOeg22kNNE3jMhgu0WTSgiGN01upv1xezwHn9 X-Received: by 2002:a17:902:28e7:: with SMTP id f94-v6mr37552996plb.297.1540249907749; Mon, 22 Oct 2018 16:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540249907; cv=none; d=google.com; s=arc-20160816; b=JOiXuiPL4jLCAGczyIL5+XCJLMskykxOxPUZTxaMBdX8+rH2iGov5H+x9rGXPrmIbL 37I0EiqJts3IckUUEVZ8+o6W26QY3cettFuaOTcyr9Gke9hPQnpx1rMyAZ3WAw5KdBIw qYOIruxP1l4GoL5xEWebpS6fJQWGniS4yjmXhy4t6uOwVSJ9tM1jTWCHjMCCY4EwbI21 +0VRo7YfH+U3qHVyUdmgj8seOOixqVF5xxIZDWXR6JlzS+u2nlmzwa86B9ZuoPzhXAGL +55kfQXHo8eYg7ZIfeJqt4SzWNbRnjJFy6KkiuqY8wZfcy0Xxo2eS3Jyf9+z9FP69oCp azew== 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=IzquyG2hwJ2BGF+7yaRRqHjroYDcegrh0OUSz7w7QvU=; b=IM4m5UUZFrdHqeyEVDdHL6UakxtTp3RKszzt7nJeLxXBNJQ0Beh4KyPXM09Wox3jJS Og3/om0um5s6GxIO+17KCf/YX7Y4xlBJ6nB2sedArwUGs5bo1fEQAsLxO7qzGZEDPqL9 b86o7WpLvciuctDQ6DUtCSuiAKOlT9FZsJ6xetYs94dcV7ffFOLBQgJ9T+9e2fbNL4Me NqsEIWWtkuaxSGSEU9ljbSuLRrGXLsPTv03qOTNdYMiKmA6uYKJ6amGAQf2BIli4HK2y HdZfL1kOXJvc004iA9YVcka6XlfncxaQ2stTUSozGjsdPX5jDdubsYKLLIS816MDhQQb BsHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=F6CUhNFq; 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 e24-v6si36239640pgj.287.2018.10.22.16.11.32; Mon, 22 Oct 2018 16:11:47 -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=F6CUhNFq; 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 S1729198AbeJWGv5 (ORCPT + 99 others); Tue, 23 Oct 2018 02:51:57 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:46672 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727313AbeJWGv5 (ORCPT ); Tue, 23 Oct 2018 02:51:57 -0400 Received: by mail-qt1-f196.google.com with SMTP id c16-v6so6033999qtj.13 for ; Mon, 22 Oct 2018 15:31:31 -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=IzquyG2hwJ2BGF+7yaRRqHjroYDcegrh0OUSz7w7QvU=; b=F6CUhNFqBm1dX5PtOJQ3IkG7FPlT2shBGdy0fCT3No6oCv0JSjYR2CpQ4zBGcF90l/ Y3WtOvT/UIabzUQtZ0hsk9XioyjK9dUmFhgIQ4TBbUqgzxvqshnbO++sqHkA9QyhfjUf gWi3nZiyPRvtNRjwjuyOw6mdg7e7/PZiJfIpu/bzxBr/l5Vkrv2X01TaVPQ3mcOgAM1b zIed4mShgCZgrekmLIgXPso9grnLjKH2uhZetb7RtFDZ3gJj82P8iDwZxwhy848lSI6F yDXEGnIQCRrUpOF3sqtaTSmec/Rz1nhGW1Yz9yxZObMlKB827+QoJVmtwlDaO++v7UC7 rmqw== 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=IzquyG2hwJ2BGF+7yaRRqHjroYDcegrh0OUSz7w7QvU=; b=cFBhAgx8cR/7nsOlemZLjJFHrM10DfdvEYI/tZp0+tRSvTkRrs5Fchy8BHciE8TKzf kHfcAcLkSjQwLMqPzW78dpydmFVcuiFxxJ6Rms9JAu9J8w7sxDtYG7Ss0Fycf21caUIq bM9EQuqh5UyED3lPeCUTCjqPZHooroFhz1BR3YNBuHxetVV2tLzS/Tb/4TrkLTgj1Skq 3WsGTylUkI90EVho7Fs3Ho2dRRSRcxPUjfLVMxFc7sJpb9xFfxOHWasANaUxF9z2Jahb 3CW8aeoSbLXmKul8VD9qF8V/sF652zXMHMWlGa8cGdQZ86FEEWXuktimybkXmkK95/Yi RJZA== X-Gm-Message-State: AGRZ1gIRlQHHBtPzaZ2Pq94WCAA4+Ectodo4LitehRg364t36tmU4NBP H7nv7mb61styF1XdnXzrEbo= X-Received: by 2002:a0c:d7d1:: with SMTP id g17mr12486170qvj.183.1540247490679; Mon, 22 Oct 2018 15:31:30 -0700 (PDT) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id 35-v6sm26181662qtr.91.2018.10.22.15.31.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 15:31:30 -0700 (PDT) Date: Mon, 22 Oct 2018 19:31:26 -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] staging: vboxvideo: Removed unnecessary parentheses Message-ID: <20181022223126.smnsopiu4cavq6zh@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 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 --- 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