From patchwork Thu Dec 18 13:58:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 5513621 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 20404BEEA8 for ; Thu, 18 Dec 2014 13:59:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 58ED8209FD for ; Thu, 18 Dec 2014 13:59:30 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 642B720A23 for ; Thu, 18 Dec 2014 13:59:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A62B2720F9; Thu, 18 Dec 2014 05:59:28 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com [209.85.216.181]) by gabe.freedesktop.org (Postfix) with ESMTP id AC673720F8 for ; Thu, 18 Dec 2014 05:59:26 -0800 (PST) Received: by mail-qc0-f181.google.com with SMTP id m20so881876qcx.12 for ; Thu, 18 Dec 2014 05:59:26 -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:in-reply-to:references; bh=TXuUs9k5ixSe8XElFhNSkdI5kAVhkuRhBbhsu5pY1b8=; b=bxOy244Lmo1Y8wi3P4eRRMm5xDBAlqxrCmM/FuJhWmtvJnAjc6R/+2ibgWAoW954Ll CD7EZxRVklgAJeiRllsRAYpehWp/5Qwx3JkCDRfFmifqU1y0nhuhjjJ/8/9gGWg1TOz7 PLhADx4IbYNL0rqNrsYFXej4iXEx5//4eiQ7XXJgS7ANjqU0gYBK5ne1nG5KG9FPVUlu tJGl3/0EImsxFbosAke+dWugiUdw6VJqclJ/2wOrPfuahYkizjCdGkFxRef/zzzzybDd JBvFwBq0XEIo5EPZhsNFfb8B08XL0WmWsGGgjQz1soem6hdoq6GPKObfVM7tOqimsPya QJpQ== X-Received: by 10.224.51.11 with SMTP id b11mr3678109qag.43.1418911166302; Thu, 18 Dec 2014 05:59:26 -0800 (PST) Received: from localhost.localdomain ([191.8.90.215]) by mx.google.com with ESMTPSA id c63sm6802505qgf.47.2014.12.18.05.59.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Dec 2014 05:59:25 -0800 (PST) From: Gustavo Padovan To: linux-samsung-soc@vger.kernel.org Subject: [PATCH 06/29] drm/exynos/fimd: don't initialize 'ret' variable in fimd_probe() Date: Thu, 18 Dec 2014 11:58:32 -0200 Message-Id: <1418911135-5207-7-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1418911135-5207-1-git-send-email-gustavo@padovan.org> References: <1418911135-5207-1-git-send-email-gustavo@padovan.org> 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 08a7995..495d7e2 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -1126,7 +1126,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;