Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5935917imu; Sun, 20 Jan 2019 23:49:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN5fHDZazR5yR/iyH6crn8UXNcanZlp+wR5J+uHewGZY9ct+N8DBeyEcOZLVnsVPI3389ieB X-Received: by 2002:a17:902:5ac2:: with SMTP id g2mr29173155plm.313.1548056967000; Sun, 20 Jan 2019 23:49:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548056966; cv=none; d=google.com; s=arc-20160816; b=b+qUmIHPDVhHQlYLaSkRA6gde6wyvyf8xC1hlVd8+e0cOd25PRp76mgDs+A23QQyw/ t95VjaGtLl1f1qskQlOi6b+YFhEsXwmKGstUSVMXLNODRf60BNIsSEXNeI6hmR6jWcNc CE9Lpo/hDR66ZwAdlOKRDgda1DODRcwRgPk5L/dDVLcI6uJbz0Pa7isWbGDemSrHfUlt qwM5SKVaeVGHjVoHRqsk4BlJppWf/3Mw7T9IMzVuqCVp31xQ2ZQn0wDGp5AViWG0qxAW aPEoR/vi0mu3/IFFLou5c87hG8GRlpU9GWqIR0/uDqkX/qP5YE6TKSJO5Sz/R7Wlvq3G 76LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from; bh=sNl4Ip1/0m7gaPIlxLEB7JcOgt+iPR9kAV4l/WiagsA=; b=wi4E4cLk4VnT6DR+qZVl0jmsRxJc2BzXF1ZlxCg7PKjDzCZ32io0zLeUSGO3xVfI65 bA6VGrL1hsr7dNIgHN4RNarjeGOOJEDpOVydazaooadHLoYw8KK0T3jDJcuDhJgi64Hd Nts1mx3rPWosMSBtcKFStk8lZ3noIzRDINchO18NJcTXx1WdfP39PY20gJIijHdOxM1+ Of5A+4x+hCfgrawK7leFvZP16oYPQr1/dE51+PCdn45mMICK75b5u0k1pzzz8/V0ZOOU tMhjMalmCMxcP2ieNFTUG9KYyKhN0L7h0Xpfj0cotuDig4SxEyTJBCaEFdOyp3vKNxPT 6phg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 26si9244289pgu.190.2019.01.20.23.49.11; Sun, 20 Jan 2019 23:49:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728451AbfAUHrd (ORCPT + 99 others); Mon, 21 Jan 2019 02:47:33 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:2280 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726240AbfAUHrd (ORCPT ); Mon, 21 Jan 2019 02:47:33 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 7977AD2FDF0DF61B7443; Mon, 21 Jan 2019 15:47:29 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.408.0; Mon, 21 Jan 2019 15:47:22 +0800 From: YueHaibing To: Larry Finger , Florian Schilhabel , Greg Kroah-Hartman , Michael Straube CC: YueHaibing , , , Subject: [PATCH -next] staging: rtl8712: drop pointless static qualifier in r8712_efuse_pg_packet_write() Date: Mon, 21 Jan 2019 07:53:13 +0000 Message-ID: <1548057193-130411-1-git-send-email-yuehaibing@huawei.com> X-Mailer: git-send-email 1.8.3.1 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to have the 'intrepeat_times' variable static since new value always be assigned before use it. Signed-off-by: YueHaibing --- drivers/staging/rtl8712/rtl8712_efuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/rtl8712_efuse.c b/drivers/staging/rtl8712/rtl8712_efuse.c index 8bc45ff..39eb743 100644 --- a/drivers/staging/rtl8712/rtl8712_efuse.c +++ b/drivers/staging/rtl8712/rtl8712_efuse.c @@ -358,7 +358,7 @@ u8 r8712_efuse_pg_packet_write(struct _adapter *padapter, const u8 offset, u8 pg_header = 0; u16 efuse_addr = 0, curr_size = 0; u8 efuse_data, target_word_cnts = 0; - static int repeat_times; + int repeat_times; int sub_repeat; u8 bResult = true;