From patchwork Thu Nov 7 18:17:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 11233477 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 2B9EE16B1 for ; Thu, 7 Nov 2019 18:17: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 11CCF21D6C for ; Thu, 7 Nov 2019 18:17:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 11CCF21D6C 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 56AF76F77E; Thu, 7 Nov 2019 18:17:19 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1613B6F77E for ; Thu, 7 Nov 2019 18:17:18 +0000 (UTC) Received: by mail-qt1-x842.google.com with SMTP id o49so3387264qta.7 for ; Thu, 07 Nov 2019 10:17: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=MC/3DvNi4KXiErQVhTtosWEoKUsYj6Co+yyEmPZ2HDY=; b=H03p9I7CjA5VoA/tDUB79Y7eOE2L+7DhNNZCCRnjcapBBoYeloVKLKnX6igcMS8JW/ PZyzT5xmxFve/6OThhQmonGAVaPZwuNSzTqF43uapQmCVIRbpLEV4pFzsX3H7fwQHmno /wfxsefe8Q/go0LI8NrRao/FCSKmN2e26+T9eXZk5j9UzZeLVJj+Da+xhUu+Oe+0cswO vvTUawdjbWTky+SGbHVLIcIfornwgpJTDYRBhClKR3ojN6oio8y6WgODxquOCkTBwD/x OK7TnviIE7cZ3iC3j//oBXBaO6xhAbCAfXh+IaNU+JVxW2RIVu7cjs7xGXPEjBWDfPqe 3Vyw== X-Gm-Message-State: APjAAAUAIl0ZhqnQXT8AhZy6DXCA5XwK5HNxQFKKMS2qT1jlhZVIEFSq Ki19CX29ZAO6g/dnqzNvMt8= X-Google-Smtp-Source: APXvYqw72Ys9YJsFtgifM1NHtIC+1zcLzs/+a3JNmsaVV1oTlm+P5/8vxzqGPKf3TtbUjQXUwCgrzw== X-Received: by 2002:aed:212b:: with SMTP id 40mr5371850qtc.206.1573150636998; Thu, 07 Nov 2019 10:17:16 -0800 (PST) Received: from fabio-Latitude-E5450.nxp.com ([177.221.114.206]) by smtp.gmail.com with ESMTPSA id y145sm1523318qkb.101.2019.11.07.10.17.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 10:17:16 -0800 (PST) From: Fabio Estevam To: stefan@agner.ch Subject: [PATCH] drm/mxsfb: Remove brackets for single line if block Date: Thu, 7 Nov 2019 15:17:08 -0300 Message-Id: <20191107181708.22033-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=MC/3DvNi4KXiErQVhTtosWEoKUsYj6Co+yyEmPZ2HDY=; b=Q2P36do2baP+PJP/GWYRY3Fc9pOccxm4LifYGqC7YNJaTydDG19121+VCWsJ+yF6mA 5EU8cm5ZJ1p+GIIpZE+k3gr+3f1EVjTZCO8eH26ZrgU+wv5pkzEkJM+bmXYXsllNl/ea qidVmKas/9IvZ1es28Jy6Yty38kHRG8YJ6Pw/S/A53W4CsywRD24qQFtZvQ2pPABpHqq rd6CRgFtzjnIjHJ/eGopx3ARN1qA+dzJcJDWs/gqxOOCiZS/PqjbIQ92eTPxbKXsIV2L VIBs8iRTMvRsdUxsPJYULmzrdz0mfIGf7LaU6ew7s5CjWFyNDzsK0gAo94JxfXxgCYbo lr5g== 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 when for a single line inside the 'if' block, so remove the unneeded brackets. Signed-off-by: Fabio Estevam --- 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);