From patchwork Thu Nov 7 18:19:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 11233479 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6C21515AB for ; Thu, 7 Nov 2019 18:19:21 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 522A621D79 for ; Thu, 7 Nov 2019 18:19:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 522A621D79 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7799B6F782; Thu, 7 Nov 2019 18:19:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by gabe.freedesktop.org (Postfix) with ESMTPS id D411F6F780 for ; Thu, 7 Nov 2019 18:19:18 +0000 (UTC) Received: by mail-qk1-x741.google.com with SMTP id h15so2817606qka.13 for ; Thu, 07 Nov 2019 10:19:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4GBcHuA6lfQX+8wO0BTc6Q9PUW2yOvDfpyD0TvRUUbo=; b=cy2EXch8ywIPzyEVjlHXU1ADF41Ed+8oln875DGNZh2jBAyfCZCqbDPNMHLHjfpEtX hMfMp0dMDAOTB8fNOEv4l3ChmfBEFVTewdmEya+k1A/B8stqFJnYIoAD2gEZp3K2JRQg jkiYg4sES3O/qCxvyRqJcbeg4oKl7hBNIkUh1vdjtSDAHgsdUZ9WvrbdfOkzsb9mmFpV HyPSwj66qPXeET2PSNEcvPHaSB4NNeK49Ueyu0Sr1G+kXzH0ZZUrXab6L+V1SOkKcw4M 9OpB5pnlCNPoJFTE0Sv+l+MoumGzci/t0QRnQL8lkdfUhLZdPwM5wqPNNRSMgANIWMa1 69Sw== X-Gm-Message-State: APjAAAUbgANtPp1odJP6dDPUIoyqL73Zo0ZjvGIrA9xFmeU9oKXu3VG+ 4WNX2wLDiqKRifraoHVmOQ0= X-Google-Smtp-Source: APXvYqzkbyiVbwOdUbnfBzWcJzXiDYFmvM11Ec7t6xerL9rt3E7uTYnejiR59//y6trk1qQGLDYhHQ== X-Received: by 2002:ae9:e851:: with SMTP id a78mr4204514qkg.312.1573150757904; Thu, 07 Nov 2019 10:19:17 -0800 (PST) Received: from fabio-Latitude-E5450.nxp.com ([177.221.114.206]) by smtp.gmail.com with ESMTPSA id o76sm1424543qke.135.2019.11.07.10.19.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 10:19:16 -0800 (PST) From: Fabio Estevam To: stefan@agner.ch Subject: [PATCH v2] drm/mxsfb: Remove brackets for single line if block Date: Thu, 7 Nov 2019 15:19:11 -0300 Message-Id: <20191107181911.22095-1-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=4GBcHuA6lfQX+8wO0BTc6Q9PUW2yOvDfpyD0TvRUUbo=; b=IdhlqQ1TOVhNn82NbTpUI3I3ygDEb5ysOUFb6rGstE4tb4YE8A5u/fGRURav2Ki0Ew Nd7cXCJ56rE1yA5iK7OQJTkgczuC20TPUG/CfaLHKqA8AiS7cT5cpClaIF0KHnRMAbjb tYoUro7plp87xvagUCUcndSyDost3GUzWry4gP75Wouc50MI5esaxCvObaQPg3Iyxnmq ZfyC9S27mg8mIYcO42m6xV/kEwE4SAdic81mduj2Dh12TsUKsXxfpMWmqvWf4TsrzRL9 yRccQ5YIoi4XRMrBabvOM60OPUw/Zmj9b4K86aAka8OveUdzPb9pXUJ2lnYjMmngCwFr 389g== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dri-devel@lists.freedesktop.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" There is no need for brackets for a single line inside the 'if' block, so remove the unneeded brackets. Signed-off-by: Fabio Estevam --- Changes since v1: - Fix typo in commit log drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mxsfb/mxsfb_crtc.c b/drivers/gpu/drm/mxsfb/mxsfb_crtc.c index b69ace8bf526..bacd1f2b2fb3 100644 --- a/drivers/gpu/drm/mxsfb/mxsfb_crtc.c +++ b/drivers/gpu/drm/mxsfb/mxsfb_crtc.c @@ -326,11 +326,10 @@ void mxsfb_plane_atomic_update(struct mxsfb_drm_private *mxsfb, if (event) { crtc->state->event = NULL; - if (drm_crtc_vblank_get(crtc) == 0) { + if (drm_crtc_vblank_get(crtc) == 0) drm_crtc_arm_vblank_event(crtc, event); - } else { + else drm_crtc_send_vblank_event(crtc, event); - } } spin_unlock_irq(&crtc->dev->event_lock);