Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp322885iob; Fri, 13 May 2022 02:28:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH08ZUHlMtzgjwuEIlix45PemGojgwscKOjqppstrUOPyj4jx7CfpAXsLoJ37aNl+1MKNx X-Received: by 2002:a17:907:6eac:b0:6f8:61c4:4cb3 with SMTP id sh44-20020a1709076eac00b006f861c44cb3mr3292608ejc.597.1652434082037; Fri, 13 May 2022 02:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652434082; cv=none; d=google.com; s=arc-20160816; b=KJPUcNNusGazP2iJH5X3gCaP4tOHhfgsO0sfye5/3so/9PXoL8Vp974ko7TN+1XICy sMUxnddo/rpUb4s1iV1vWPklOp5jrkYeGUfP71TJ0LiaYBVKV0QZqnLT22KPdpMDRBZl T91NFQeEhXeNlcJ8eLun+rrSWcQg61zsI6I4Qz+iDXEpdTn1iUfldcPgvWptO27gD6vY izcg2C6w1GEfR/K/3DxGmweNqj1f7eL9E4R3YQe7s+juwGL1uHU7i5FIBKXC9+PJIUpZ Dpel/6GIG+Zj7LH6wSLvN70KU12oWqNWZjeplE9RyxdDJtXkzTGlaesa/NRtfEjPrGKE +kVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=33w4YjdLEtfrX2UHhgxTGrOZu/RxwWnx6ookC2/afjU=; b=C8N2YhVctmhlW+TPMYMj07DJt7gPjLICZSFJGZ/0Q5YkV3q6cdFVJpt/gVwoj0MiVk V0l5mI1N0H7NOz+Z/yZN8XRFIS4vRA9DzuP556ACgxQwoeUCrCHfXRdsJaPB4yZMbXLr iG4jMaQpGTGb/BuY/otAfq9OoJXasELuTk8cYHdK/11qdUKcBGBs01RfKS72fLVctir1 gMHVvXXrdRDs3+Zp7Ipp8gMJi0eoI0lBh88tVT5VsS50eHwunLNrEV0VfiGPAugpxrir sIHpJZ80NRhxk2zHewrXvBeN8akpdE9pn5rbfobl/tbA1zrViF+AIGk9ks5dd/zjOne5 7JsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf31-20020a1709077f1f00b006e1442ff695si1727419ejc.590.2022.05.13.02.27.35; Fri, 13 May 2022 02:28:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376444AbiEMBz5 (ORCPT + 99 others); Thu, 12 May 2022 21:55:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376439AbiEMBzy (ORCPT ); Thu, 12 May 2022 21:55:54 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B58F2DF50 for ; Thu, 12 May 2022 18:55:53 -0700 (PDT) Received: from canpemm500005.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4KzsCK1wGYzfbLX; Fri, 13 May 2022 09:54:37 +0800 (CST) Received: from huawei.com (10.67.174.96) by canpemm500005.china.huawei.com (7.192.104.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 13 May 2022 09:55:51 +0800 From: Zhang Jianhua To: , , CC: Subject: [PATCH -next v2] vt: defkeymap.c_shipped remove unused variables Date: Fri, 13 May 2022 09:54:27 +0800 Message-ID: <20220513015427.569539-1-chris.zjh@huawei.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.96] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To canpemm500005.china.huawei.com (7.192.104.229) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The global variables 'funcbufptr' 'funcbufsize' and 'funcbufleft' have been initialized but not used, they are redundant and remove them. Signed-off-by: Zhang Jianhua --- No code changes since v1, only remove the redundant line "--------" in v1 commit message. --- drivers/tty/vt/defkeymap.c_shipped | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/tty/vt/defkeymap.c_shipped b/drivers/tty/vt/defkeymap.c_shipped index 094d95bf0005..80dee50bcb7a 100644 --- a/drivers/tty/vt/defkeymap.c_shipped +++ b/drivers/tty/vt/defkeymap.c_shipped @@ -185,10 +185,6 @@ char func_buf[] = { '\033', '[', 'P', 0, }; -char *funcbufptr = func_buf; -int funcbufsize = sizeof(func_buf); -int funcbufleft = 0; /* space left */ - char *func_table[MAX_NR_FUNC] = { func_buf + 0, func_buf + 5, -- 2.31.0