From patchwork Wed Nov 26 18:13:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 5387341 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6094B9F2F5 for ; Wed, 26 Nov 2014 18:13:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9F0B4201EF for ; Wed, 26 Nov 2014 18:13:14 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id BCF6C20160 for ; Wed, 26 Nov 2014 18:13:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C076B6E186; Wed, 26 Nov 2014 10:13:12 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by gabe.freedesktop.org (Postfix) with ESMTP id 647AA6E186 for ; Wed, 26 Nov 2014 10:13:12 -0800 (PST) Received: by mail-qc0-f182.google.com with SMTP id r5so2498244qcx.13 for ; Wed, 26 Nov 2014 10:13:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id; bh=qrEifo8ldnak46zQXCLZ8ZJod3Jft99wO08wXma9/kA=; b=fd28Y71DzKlpqsjAx3ZOc/sJz9qnLGO9umvb6ZH1vyYpdrN8JU8UE/bRTmcuPQsdHK 2GQPDDBupMYHP6xqZFqxs3uKHj4bYyV6F8i0q5XFm0q/m4DQzcaTnh0Ja26izAOeoP7Q CiTpLFppmJ5kw7eY+ees8R/BYnA/KVQ9PQac4veiFYakkuamhouibt0XHJ2YhCOS76OC 3PaSJqNtYl95qTRxAt3Ucc8mGpHlTfzAdSP1bCkdKbwncO8BgIMe84eZb2+oWQAUFp3A W/8p/RdGlhFhDRulm96b9aHK06lBXwo2CoCfeJD85l97g/aELiFMrncYJVABbs2ln0JB 6B8w== X-Received: by 10.140.35.105 with SMTP id m96mr48230639qgm.8.1417025592012; Wed, 26 Nov 2014 10:13:12 -0800 (PST) Received: from localhost.localdomain ([191.8.93.69]) by mx.google.com with ESMTPSA id e2sm4517825qaw.10.2014.11.26.10.13.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Nov 2014 10:13:11 -0800 (PST) From: Gustavo Padovan To: linux-samsung-soc@vger.kernel.org Subject: [PATCH 1/2] drm/exynos/fimd: don't initialize 'ret' variable in fimd_probe() Date: Wed, 26 Nov 2014 16:13:02 -0200 Message-Id: <1417025583-4054-1-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 1.9.3 Cc: Gustavo Padovan , dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan We set it in the beginning of the function, thus no need to set it at initialization. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 26f94e5..0c9def9 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -1134,7 +1134,7 @@ static int fimd_probe(struct platform_device *pdev) struct fimd_context *ctx; struct device_node *i80_if_timings; struct resource *res; - int ret = -EINVAL; + int ret; if (!dev->of_node) return -ENODEV;