From patchwork Fri Oct 20 17:25:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 10020759 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CDADC60234 for ; Fri, 20 Oct 2017 17:26:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF7BB28E1D for ; Fri, 20 Oct 2017 17:26:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A43D728F2F; Fri, 20 Oct 2017 17:26:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3711428E1D for ; Fri, 20 Oct 2017 17:26:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 995276E0FA; Fri, 20 Oct 2017 17:26:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-io0-x244.google.com (mail-io0-x244.google.com [IPv6:2607:f8b0:4001:c06::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2CFD26E0FA for ; Fri, 20 Oct 2017 17:26:01 +0000 (UTC) Received: by mail-io0-x244.google.com with SMTP id 97so13966654iok.7 for ; Fri, 20 Oct 2017 10:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=y4Ko+/HW2NpycvN18yFBF8bnVmT/TwgPCsz0cx3nnA0=; b=Y3xd3dm2qPIQrQ1z7N/hQomELGV6DmaDR7DOD2ADnTn8j5AR5C1alF0KEznj4FPIRn 2xXlSSD4ZdaEI2uMW6eI7JT0Qo5HzzfWtM2HUFOqExRlHakqzpYSJc+z6Qt8+JlaxqFe /ILt2m4VcC40gAwG7Bl7Yn+HJUg8g1j5I9YPU= 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:mime-version :content-transfer-encoding; bh=y4Ko+/HW2NpycvN18yFBF8bnVmT/TwgPCsz0cx3nnA0=; b=e38dkfdvpt3A4MW5+lVsLdjGyPqAYghmPK4CGVhSdVRhbvWPRYME9t+X3xtyALpOxQ LXSeRJdgSAGp34IfIbZ7ooenfHdZnLISRF0+s9ZdGuOQCePBYaW+dgMKkpunnnBvUIa4 qxlcC0yO1yJBLgWnWQ+8+8yXcS8SCuXwSSUvAOUMmoz9kEk66HTPjcB1pZ9S8bNh+DGf 2t2ybvIwKNflpjlHMxFVGj2ojmSkuleOJZ3TrfRQnYWXI1tNYFJxUjEgv8iZCU8c7n7t Vm0ruz0X7n6sJPuhMypGSPq09R7ATyfU+e4F5PuNY0VG71P+6efwGUuj1cpAUyjKo0FR 1jnw== X-Gm-Message-State: AMCzsaXbHHh3aKpLXuod4mYwbOg96f5QeISl+s4QRAIdK3xUnn7dyha2 ptXhYhEppPUB48kW5LqkjRxjvBRS8Os= X-Google-Smtp-Source: ABhQp+RQ2JIUvX/VE6HauFZvOW0lN2xiw+7vNcjWshdxnK1nEGgWzVzyPjp/nEKGiu0YPz2FxLRiyw== X-Received: by 10.107.138.10 with SMTP id m10mr7736369iod.164.1508520360196; Fri, 20 Oct 2017 10:26:00 -0700 (PDT) Received: from rosewood.cam.corp.google.com ([2620:0:1013:0:f685:3152:9ba1:429a]) by smtp.gmail.com with ESMTPSA id 194sm751150ito.20.2017.10.20.10.25.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Oct 2017 10:25:59 -0700 (PDT) From: Sean Paul To: dri-devel@lists.freedesktop.org, Jeffy Chen Subject: [PATCH] drm/rockchip: Fix build warning in analogix_dp-rockchip.c Date: Fri, 20 Oct 2017 13:25:48 -0400 Message-Id: <20171020172557.54900-1-seanpaul@chromium.org> X-Mailer: git-send-email 2.15.0.rc0.271.g36b669edcc-goog MIME-Version: 1.0 Cc: linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP I didn't catch this before applying, just right after (of course). Fixes: ../drivers/gpu/drm/rockchip/analogix_dp-rockchip.c: In function ‘rockchip_dp_of_probe’: ../drivers/gpu/drm/rockchip/analogix_dp-rockchip.c:276:6: warning: unused variable ‘ret’ [-Wunused-variable] int ret; ^~~ Fixes: 102712a32ff5 ("drm/rockchip: analogix_dp: Remove unnecessary init code") Cc: Jeffy Chen Cc: Mark Yao Cc: Sean Paul Cc: Heiko Stuebner Cc: dri-devel@lists.freedesktop.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-rockchip@lists.infradead.org Signed-off-by: Sean Paul --- drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c index 8cae5ad926cd..39944c0f1c0b 100644 --- a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c +++ b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c @@ -273,7 +273,6 @@ static int rockchip_dp_of_probe(struct rockchip_dp_device *dp) { struct device *dev = dp->dev; struct device_node *np = dev->of_node; - int ret; dp->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); if (IS_ERR(dp->grf)) {