Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1245584iog; Tue, 14 Jun 2022 02:10:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqqC9HmpkS6efLUDJ3G/jGxogu4K94ynkpZMvetkYXJALRZGjGrVDiTOBlAbFvPV5CP+pc X-Received: by 2002:a05:6a00:1585:b0:51c:3a6e:95f3 with SMTP id u5-20020a056a00158500b0051c3a6e95f3mr3614978pfk.51.1655197822029; Tue, 14 Jun 2022 02:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655197822; cv=none; d=google.com; s=arc-20160816; b=T5BRDP2LVJwkUJOsJsR5P548VOn/NVWtY1/+P+ro1zrL8/KJCz2N9xDgq5kQ+dAgm/ GdZyblRcHPZugqDectS3p2UTacvKj0Iv7s6ptg4JoMgtM7qPyRjDcsgxjML9/H2BOKGj ofVVYU9sJMesMmxqjxGfeymst5bp1nr3lWH0BAzbbhQ9nPfyf8v/E8dPMIN9SCprH5yd pLa0X/byKGnhKU6ZuQazXeui8H0lkkyYSnmBncUK/OoWiZC8+rGOieZH+k3/bLH6Bq7S 8/umAHUWw1yK3WclvTQnnnxUM109q05UxxxqWqoXjRmlTecOgOT6Mr1wJnZV4eW9U2Vc +cAw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=7z6ffiOjjfGjQ8whpMbDH2/AAPquPKkXS6F3A5CWNoo=; b=lAgmbmPKCwWuDWQA7nsE8hWlBydnphLlZdV865uWOwP/Umyvl46rU2cqzC1kGLashw Z4flQb5fxje5p8eWuFVYdH48K5TVpuJnUyVtDnmA0+tFZPPdGHQ0IZ8H92LluHoJL4mp JLUM2UZq+K9qWrq9TG5/t/KEWfiGSynz5X7y95yhQtZN1bowk9FNQ13Hm+o+FQiBXZ+k 5sEgN0I/OGSh0nBR+iHkGxVHN7Z4qTMqczkEVKbqudRkE2YoO1WEjg8odu6Jo5NclrxX taZBa2DXgje91vDk8Vh3gQ28sUAwWJhDvF2oXVXpQkyQ2NVEyYy+GHPs9BDkZDIF+oGa QpZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=l9twDCTX; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l63-20020a638842000000b0040628bc8591si8562987pgd.506.2022.06.14.02.10.09; Tue, 14 Jun 2022 02:10:22 -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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=l9twDCTX; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242607AbiFNJFr (ORCPT + 99 others); Tue, 14 Jun 2022 05:05:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237411AbiFNJFm (ORCPT ); Tue, 14 Jun 2022 05:05:42 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AA163D48F; Tue, 14 Jun 2022 02:05:42 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id DD9B821AF2; Tue, 14 Jun 2022 09:05:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1655197540; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7z6ffiOjjfGjQ8whpMbDH2/AAPquPKkXS6F3A5CWNoo=; b=l9twDCTXjUMNeqivTp+VEaH18q3JfvdmWbfS4DZs/nxT4jYfOCQexGHdI90l/mdGM4e1yp v197i1d5zD5MEG1wxJVmDe+AGzckVksAuSUZxr6x/hy2EPgAeUCPPUUNAXR60j7eCLMtpj SimS01bqVe24VucH1vcj18+1+VCLQWs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1655197540; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7z6ffiOjjfGjQ8whpMbDH2/AAPquPKkXS6F3A5CWNoo=; b=Ab14N25BuCcv2CZCaVRu335/cHaNdkx7haJOOcSwn4Jpo0QLgv0Zquf/3uzRhvoRy+LqyI 5hehCvOyrRb/X5BA== Received: from localhost.localdomain (unknown [10.100.201.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id B0DD12C142; Tue, 14 Jun 2022 09:05:40 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH v2 2/8] tty/vt: consolemap: remove unused parameter from set_inverse_trans_unicode() Date: Tue, 14 Jun 2022 11:05:31 +0200 Message-Id: <20220614090537.15557-2-jslaby@suse.cz> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220614090537.15557-1-jslaby@suse.cz> References: <20220614075713.32767-1-jslaby@suse.cz> <20220614090537.15557-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 conp is unused in set_inverse_trans_unicode(), remove it. Reviewed-by: Ilpo Järvinen Signed-off-by: Jiri Slaby --- drivers/tty/vt/consolemap.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/tty/vt/consolemap.c b/drivers/tty/vt/consolemap.c index 2039237b5266..c5f5fa39d7b2 100644 --- a/drivers/tty/vt/consolemap.c +++ b/drivers/tty/vt/consolemap.c @@ -241,8 +241,7 @@ static void set_inverse_transl(struct vc_data *conp, struct uni_pagedict *p, } } -static void set_inverse_trans_unicode(struct vc_data *conp, - struct uni_pagedict *p) +static void set_inverse_trans_unicode(struct uni_pagedict *p) { unsigned int d, r, g; u16 *inv; @@ -327,7 +326,7 @@ static void update_user_maps(void) p = *vc_cons[i].d->vc_uni_pagedir_loc; if (p && p != q) { set_inverse_transl(vc_cons[i].d, p, USER_MAP); - set_inverse_trans_unicode(vc_cons[i].d, p); + set_inverse_trans_unicode(p); q = p; } } @@ -678,7 +677,7 @@ int con_set_unimap(struct vc_data *vc, ushort ct, struct unipair __user *list) for (enum translation_map m = FIRST_MAP; m <= LAST_MAP; m++) set_inverse_transl(vc, dict, m); - set_inverse_trans_unicode(vc, dict); + set_inverse_trans_unicode(dict); out_unlock: console_unlock(); @@ -741,7 +740,7 @@ int con_set_default_unimap(struct vc_data *vc) for (enum translation_map m = FIRST_MAP; m <= LAST_MAP; m++) set_inverse_transl(vc, dict, m); - set_inverse_trans_unicode(vc, dict); + set_inverse_trans_unicode(dict); dflt = dict; return err; } -- 2.36.1