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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0C49AC433F5 for ; Fri, 29 Apr 2022 06:39:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354621AbiD2Gmm (ORCPT ); Fri, 29 Apr 2022 02:42:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234036AbiD2Gml (ORCPT ); Fri, 29 Apr 2022 02:42:41 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17F0DBABA1 for ; Thu, 28 Apr 2022 23:39:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D4F8BB832F5 for ; Fri, 29 Apr 2022 06:39:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB805C385A7; Fri, 29 Apr 2022 06:39:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651214362; bh=5c8F2sq+4CEvKl5AkGR/1+aWdhR+TKH8lu0tldZgVqE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=umbpuzVpvhhaRNlWnfx/nGJYtLvJUERYtcx/xz4Be93SbW1C3kWnYpEW+lhW+iv6V KmvAVC68u57wvTshflOSqi0k2uAoXeLo+TkatozuB9r6soy9LzkFVMw31V38j1KTD7 SjDrO64gp1wEgUN3VJvBc23W3FmwT9Af4RmL5ohc= Date: Fri, 29 Apr 2022 08:39:14 +0200 From: Greg KH To: Zhang Jianhua Cc: jirislaby@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] vt: defkeymap.c_shipped remove unused variables Message-ID: References: <20220429014814.988829-1-chris.zjh@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220429014814.988829-1-chris.zjh@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 29, 2022 at 09:48:14AM +0800, Zhang Jianhua wrote: > The global variables 'funcbufptr' 'funcbufsize' and 'funcbufleft' have > been initialized but not used, they are redundant and remove them. > > -------- Why this extra "------" line? > > Signed-off-by: Zhang Jianhua > --- > 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 > Shouldn't you fix up the loadkeys tool instead? As the top of this file says, it is auto-generated and is not something to be hand-edited at all. thanks, greg k-h