From patchwork Tue Jul 21 13:48:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 11675703 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CBEA913B6 for ; Tue, 21 Jul 2020 13:39:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BE19620792 for ; Tue, 21 Jul 2020 13:39:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727038AbgGUNjF (ORCPT ); Tue, 21 Jul 2020 09:39:05 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:54822 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727914AbgGUNjF (ORCPT ); Tue, 21 Jul 2020 09:39:05 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 231267576B65B20F8B26; Tue, 21 Jul 2020 21:38:56 +0800 (CST) Received: from kernelci-master.huawei.com (10.175.101.6) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Tue, 21 Jul 2020 21:38:44 +0800 From: Wei Yongjun To: Hulk Robot , Lee Jones , "Daniel Thompson" , Jingoo Han , Bartlomiej Zolnierkiewicz , Sam Ravnborg CC: Wei Yongjun , , Subject: [PATCH -next] backlight: cr_bllcd: Remove unused variable 'intensity' Date: Tue, 21 Jul 2020 21:48:41 +0800 Message-ID: <20200721134841.33893-1-weiyongjun1@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.175.101.6] X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Gcc report unused-variable warning as follows: drivers/video/backlight/cr_bllcd.c:62:6: warning: unused variable 'intensity' [-Wunused-variable] 62 | int intensity = bd->props.brightness; | ^~~~~~~~~ After commit 24d34617c24f ("backlight: cr_bllcd: Introduce gpio-backlight semantics"), this variable is never used, this commit removing it. Fixes: 24d34617c24f ("backlight: cr_bllcd: Introduce gpio-backlight semantics") Reported-by: Hulk Robot Signed-off-by: Wei Yongjun --- drivers/video/backlight/cr_bllcd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/backlight/cr_bllcd.c b/drivers/video/backlight/cr_bllcd.c index a24d42e1ea3c..4ad0a72531fe 100644 --- a/drivers/video/backlight/cr_bllcd.c +++ b/drivers/video/backlight/cr_bllcd.c @@ -59,7 +59,6 @@ struct cr_panel { static int cr_backlight_set_intensity(struct backlight_device *bd) { - int intensity = bd->props.brightness; u32 addr = gpio_bar + CRVML_PANEL_PORT; u32 cur = inl(addr);