From patchwork Sat Mar 2 10:23:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2207361 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 7FE17DF230 for ; Sat, 2 Mar 2013 17:08:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8076DE61F5 for ; Sat, 2 Mar 2013 09:08:02 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48]) by gabe.freedesktop.org (Postfix) with ESMTP id E20A4E5C3A for ; Sat, 2 Mar 2013 02:33:42 -0800 (PST) Received: by mail-pb0-f48.google.com with SMTP id wy12so2200929pbc.21 for ; Sat, 02 Mar 2013 02:33:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=NXTlR9elzUE9a2Xdx8abrlky6lEMCa3sJ8YykHzgLZw=; b=TU+6yptw4ge5Jg4HWEFm5zRg4V6SDB7lbZDSCC1BRTaCXz+6t/OGAanzFtVxPrKaVL evcRTksIkPuoD7VhM7laD83HdcFXX36eD+xPsWfQu8wkl336i8TKyBU8YQqCWm9ej4lp e+fxvOlXfwE0pTdzQU7CPRo708XEx5DJ0NdMX4j3lNfh15Gx6UCi9Hu2fKXtO5yd/V+k 5wFd58KXzAO2c3QTXNi0AzFRx3DaVLs4W7g9ANtv/lqC9lDiY8sHfF0ly9MsRi7t8dR8 inestWRQgMSL92KEW12lD+jOwwWdGSNtFTIQAXz9OE8hpeYphwrPamzK1FWFfHf4fb4o lEqQ== X-Received: by 10.66.27.169 with SMTP id u9mr22591051pag.197.1362220422857; Sat, 02 Mar 2013 02:33:42 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id z8sm4123670pbt.39.2013.03.02.02.33.39 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 02 Mar 2013 02:33:42 -0800 (PST) From: Sachin Kamat To: dri-devel@lists.freedesktop.org Subject: [PATCH 2/4] drm/tilcdc: Remove unnecessary braces Date: Sat, 2 Mar 2013 15:53:07 +0530 Message-Id: <1362219789-6146-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1362219789-6146-1-git-send-email-sachin.kamat@linaro.org> References: <1362219789-6146-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQkvxZvplQqODvzxxhI8jjpn7hIa4BHe75+SluWCBGlI1sSJCGbjVCR9/Hlnmk5TP3QYE+Bm X-Mailman-Approved-At: Sat, 02 Mar 2013 09:05:35 -0800 Cc: sachin.kamat@linaro.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Silences the following checkpatch warning: WARNING: braces {} are not necessary for any arm of this statement if (priv->rev == 1) { Signed-off-by: Sachin Kamat --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index bfac582..909f2bd 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -299,11 +299,10 @@ static int tilcdc_irq_postinstall(struct drm_device *dev) struct tilcdc_drm_private *priv = dev->dev_private; /* enable FIFO underflow irq: */ - if (priv->rev == 1) { + if (priv->rev == 1) tilcdc_set(dev, LCDC_RASTER_CTRL_REG, LCDC_V1_UNDERFLOW_INT_ENA); - } else { + else tilcdc_set(dev, LCDC_INT_ENABLE_SET_REG, LCDC_V2_UNDERFLOW_INT_ENA); - } return 0; }