From patchwork Wed Jan 13 14:50:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 362135 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp599454jap; Wed, 13 Jan 2021 06:52:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJJVM2sIqssW8qfx9uBYWNvMuA4Y9X0fn74A/LhZdCcXeJU94+fJisdmDxemfoLBEPB4PF X-Received: by 2002:a17:902:fe08:b029:de:36a1:9f12 with SMTP id g8-20020a170902fe08b02900de36a19f12mr1954779plj.30.1610549463217; Wed, 13 Jan 2021 06:51:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610549463; cv=none; d=google.com; s=arc-20160816; b=LHJCcam+bkMVNqjIbBadAWZv219V1u3IQwmhxAtHuF29Mdrmh1c6+XRTBEGP96pU5P ImFqojy1SepgAtyi7zWn5U2IG1xh5S7jqSjvRZS9ELqLglZfYmxJ5l+LZWGRrPZs5hXm 6LgGjyYN/ZST/TxOpisNISLFf3NellapIb4VG7Txg4143HBVrPEkdrXQx1u1XS9I4etG Zh7fYPYujCgyJLmBBzvzQZnLJSd06wOEPa41d+nCjp9TKrRkd2xUhFziUdfljacEVr+T JxSsA3T7gBDLmDjXJMqOl2W9uVLgnRuBmqu/r8nAvGGBQsuHo5bmwfHaGRwnmpJjTpYG Wk3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=VuwO2+c8IegemHXNVDRaBLXIlxP/LTMJk5M3wcQ16+4=; b=DeJPy8naYHw/geuPXRth+ulk+nQUyRstbeagHz9nyjnRJXoK4uhmpfZJxYtFJdaNkn QdHvlr7PTU6VNsabzyISgwUtxaxkNiMlNM7VVfn+NM0b4J7DL386cvbTK7UFruJ920v4 BK1i3izWuetbFK6awslVC7xDGwg3D7CxmNPCNJt/YP5sIwKQmyU1O0A4nyeZYiFSfZMD wudqEvbBzilwR13vafARdZtzu21F5KFNfte60HDwE/ueuEnuiBpsclxl9/rFbFaFY8wy poae3PXseIVHLaGufNEFWGFTdzwoOTY6qGKUxS1vz8AXKAqJp2nEDmt+uK+VATQOgAMs WWFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ClTWBKea; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id c68si2537377pfc.230.2021.01.13.06.51.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:51:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ClTWBKea; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 53BD36EA64; Wed, 13 Jan 2021 14:50:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8ED436EA6E for ; Wed, 13 Jan 2021 14:50:50 +0000 (UTC) Received: by mail-wr1-x429.google.com with SMTP id c5so2409744wrp.6 for ; Wed, 13 Jan 2021 06:50:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cx+Lvpr+opVztxwCrpEEue+3ZpAhdFGYil/Lm2hEOBU=; b=ClTWBKea4vm3y9ZVGUdkzqdOECtwhR9PudkWuiyjwsis41BqC493w/zvDp2ojr1Xuc ZKnKrxsByJZR0AsZRzPwnncxKrIpJo8q/JxnXgt5uVjgHffxSyJ/m/GiYYZFr0k/fKPF mAUTMzojahcDs+ltW3aBgJgY0pUiUSDu1uCQsHcM5514XCdauiHH8Frr9ruELCw0BD/E FTVVet0fiPEihuRkcU9+1jE680PoB0pOR4Fx8MdQ56p1l1lAxW4F53kcOf3dMgFbW0wD nLFBJyF35Zz+nr0o3nFYMPOFbn8EmarY0vsbpWCUmYqEvxpBpYIoiNLTuo7DHxfJGp22 4RYA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=cx+Lvpr+opVztxwCrpEEue+3ZpAhdFGYil/Lm2hEOBU=; b=m92Hj37/sgWizPZQza2PDa2Z4HtWBjf4UtZKUv846QO1D7VBh6pGp2SMFgcjJacswn bc3g9hs1/u/KnZy1uACFENNYlI6fmAlUjgCpAjM0wXRht73U6GXsL2EZ0myqqR+h6UwN hkH8oW+khulKQkvCa9Rr9OoGQu3w9f6C/OEJnMOEHnKJdNyJTkpyFOJT8SCkYnoJ5kOM rp+DwrZFCmqrohpkCtLA8XjTgHT1Il6Qu21AR3IXvPEoHlub9i9GRh7DG5MFSpfg9Yda 44B8x0aLFAi0Qy//hsTcF6dx67TP8E48obxlhxYYjxatt0OLd5/QHl6KKdP2XTgOPXfo DM1w== X-Gm-Message-State: AOAM533pnlkgN2AgV1N90GNGGs91dAHOqstyCf4OQMQFD32mkZJaME5S ZREm/hSYYer0faA1LZ4nr31xAQ== X-Received: by 2002:a5d:674b:: with SMTP id l11mr3094653wrw.247.1610549449265; Wed, 13 Jan 2021 06:50:49 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id t188sm3273433wmf.9.2021.01.13.06.50.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:48 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 25/31] video: fbdev: mx3fb: Remove unused variable 'enabled' Date: Wed, 13 Jan 2021 14:50:03 +0000 Message-Id: <20210113145009.1272040-26-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210113145009.1272040-1-lee.jones@linaro.org> References: <20210113145009.1272040-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fbdev@vger.kernel.org, Arnd Bergmann , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Software Engineering , Sam Ravnborg Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/video/fbdev/mx3fb.c: In function ‘sdc_disable_channel’: drivers/video/fbdev/mx3fb.c:448:11: warning: variable ‘enabled’ set but not used [-Wunused-but-set-variable] Cc: Sam Ravnborg Cc: Arnd Bergmann Cc: Software Engineering Cc: dri-devel@lists.freedesktop.org Cc: linux-fbdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/video/fbdev/mx3fb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/mx3fb.c b/drivers/video/fbdev/mx3fb.c index 894617ddabcb6..d1c8f7a969ac3 100644 --- a/drivers/video/fbdev/mx3fb.c +++ b/drivers/video/fbdev/mx3fb.c @@ -445,7 +445,6 @@ static void sdc_enable_channel(struct mx3fb_info *mx3_fbi) static void sdc_disable_channel(struct mx3fb_info *mx3_fbi) { struct mx3fb_data *mx3fb = mx3_fbi->mx3fb; - uint32_t enabled; unsigned long flags; if (mx3_fbi->txd == NULL) @@ -453,7 +452,7 @@ static void sdc_disable_channel(struct mx3fb_info *mx3_fbi) spin_lock_irqsave(&mx3fb->lock, flags); - enabled = sdc_fb_uninit(mx3_fbi); + sdc_fb_uninit(mx3_fbi); spin_unlock_irqrestore(&mx3fb->lock, flags);