From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5230C433E1 for ; Tue, 21 Jul 2020 08:41:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 94FA220684 for ; Tue, 21 Jul 2020 08:41:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728795AbgGUIlS (ORCPT ); Tue, 21 Jul 2020 04:41:18 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:8344 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725984AbgGUIlR (ORCPT ); Tue, 21 Jul 2020 04:41:17 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 44C6DBF27B7A03B9C9AB; Tue, 21 Jul 2020 16:41:15 +0800 (CST) Received: from ubuntu.network (10.175.138.68) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Tue, 21 Jul 2020 16:41:08 +0800 From: Zheng Yongjun To: , CC: , Zheng Yongjun Subject: [PATCH] drivers: applicom: remove set but not used variable 'byte_reset_it' Date: Tue, 21 Jul 2020 16:41:07 +0800 Message-ID: <20200721084107.13472-1-zhengyongjun3@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.138.68] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/char/applicom.c: In function 'ac_register_board': drivers/char/applicom.c:543: warning: variable 'byte_reset_it' set but not used [-Wunused-but-set-variable] Signed-off-by: Zheng Yongjun --- drivers/char/applicom.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/char/applicom.c b/drivers/char/applicom.c index 14b2d8034c51..fd0b21607a7f 100644 --- a/drivers/char/applicom.c +++ b/drivers/char/applicom.c @@ -131,8 +131,6 @@ static int dummy; /* dev_id for request_irq() */ static int ac_register_board(unsigned long physloc, void __iomem *loc, unsigned char boardno) { - volatile unsigned char byte_reset_it; - if((readb(loc + CONF_END_TEST) != 0x00) || (readb(loc + CONF_END_TEST + 1) != 0x55) || (readb(loc + CONF_END_TEST + 2) != 0xAA) || @@ -160,7 +158,6 @@ static int ac_register_board(unsigned long physloc, void __iomem *loc, apbs[boardno].RamIO = loc; init_waitqueue_head(&apbs[boardno].FlagSleepSend); spin_lock_init(&apbs[boardno].mutex); - byte_reset_it = readb(loc + RAM_IT_TO_PC); numboards++; return boardno + 1; -- 2.17.1