Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp359733rwl; Wed, 5 Apr 2023 01:31:22 -0700 (PDT) X-Google-Smtp-Source: AKy350aJODM2HXNGERzBpSQ5++t0sRS+uySjpp2fc5ZV/oYwo5Lge1BLf5rwig+atkWnOwDwn6Cm X-Received: by 2002:aa7:c993:0:b0:502:251b:3a4c with SMTP id c19-20020aa7c993000000b00502251b3a4cmr1154500edt.20.1680683482671; Wed, 05 Apr 2023 01:31:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680683482; cv=none; d=google.com; s=arc-20160816; b=V5O72HAIoHuPYs27fETN/hhE0y2CzjM5ZF0sKWqr+R6LW7yXHH+B67gXgHxkVhWUl8 wljDmQv8J8iSqgDBNGYRtfjJvTMF1zw5/fEukFB4WFrUgp08C0FDh8ZuN7DwLMFMe5hw mrxGYOiTsPrBK+0i3CJuhPnHRWucQfzLogQXfcaHVbZbj2iDnWHrBrr0MySs40LtQuQB B4VYPgOq8fhUcT8YDJIXCwfHQiftHHe6fibWhttvYdMKfAudpPlidDF1dKye/5SJ1s+4 LxXnbMPw6HF76vmMi4yaNg8EymsMuvlDZCLe65/GDvpChf0ZJ7ivGpl1VY9V8bVapEjc O4ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=YbosvVmaJC5LPmfehXbGFsLFMkenmP8972GgtNw3c68=; b=xbW0qUg9brvZ02wfOv+5eb2Or4k2Pr8qwIJZ6mye6nNlDLbZo50yvz67P0LMfmVgrz zay8U8EaUmDXcBUebHygj1JeAWQWjTHmHagQQqh/UyWAjN9aw5WtICPj0M86OVTKg4Xm mWx4VVPwLLzYcqyTTYxvqlQ2WUlq9nj+ho0AqQTNTODX/vZ5ZIc9bTvj3UDY0tkwtpGz DdoHcHK6w9Ir7TmNuWhJAQnnCFGwe9e4+t25aPB0ggsCXUP9iOvN6a8nKH6XEZyfxdhD MG6U1YghX3menk0kK6RpywWalWBjtUXYlAjAIY5LKwXt7+DLiGPGpNeIDnk/7xV8fRx7 WoKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=B+AP+ERA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f7-20020a50ee87000000b004fe5ea74b93si2966151edr.349.2023.04.05.01.30.56; Wed, 05 Apr 2023 01:31: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=@intel.com header.s=Intel header.b=B+AP+ERA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237418AbjDEIQU (ORCPT + 99 others); Wed, 5 Apr 2023 04:16:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237209AbjDEIQT (ORCPT ); Wed, 5 Apr 2023 04:16:19 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76B7EE4D; Wed, 5 Apr 2023 01:16:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680682578; x=1712218578; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=Ex8tbN3S36AvX1h7p6j4FUqtHtDawlFDD/rozOdZF6I=; b=B+AP+ERA2CGZEAyeWWtAWfPvRXc9RRDr7SeIZnNd0vEMpZI1ee10/RTb 25cPQhjoF0JPK/pm5btS5DyFmfyslgnzJlNnPoww6seOgQmrJwQ0FPblw Q65c5+prPcjmHAQ7Dgd+UU54gZo0271cn5YdQpXboO0Iu2VwTUOydpTAS JlYmW4c3TIBBY0ZC/0ZVFJMqS4GdOke4TdDYVCUM6Zr16mpHaQyoQK7jr qKhfcxGz8WXX2/2TVMnh57jUV0S+gqYFon2PsiUZTZLQLl3Ai4QdoE5U5 o3JGHj/gntAxpPOrAb0ivCwFkFV0de4zeMtbMtwp9cWHDIwxwspNIIKlc w==; X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="330997841" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="330997841" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2023 01:16:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="755934098" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="755934098" Received: from wtedesch-mobl1.ger.corp.intel.com ([10.252.53.134]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2023 01:16:15 -0700 Date: Wed, 5 Apr 2023 11:16:13 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: "D. Starke" cc: linux-serial@vger.kernel.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, ilpo.jarvinen@linux.intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/9] tty: n_gsm: fix redundant assignment of gsm->encoding In-Reply-To: <20230405054730.3850-1-daniel.starke@siemens.com> Message-ID: References: <20230405054730.3850-1-daniel.starke@siemens.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-943274229-1680682577=:2159" X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-943274229-1680682577=:2159 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT On Wed, 5 Apr 2023, D. Starke wrote: > From: Daniel Starke > > The function gsmld_open() contains a redundant assignment of gsm->encoding. > The same value of GSM_ADV_OPT is already assigned to it during the > initialization of the struct in gsm_alloc_mux() a few lines earlier. > > Fix this by removing the redundant second assignment of gsm->encoding in > gsmld_open(). > > Fixes: e1eaea46bb40 ("tty: n_gsm line discipline") > Signed-off-by: Daniel Starke > --- > drivers/tty/n_gsm.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c > index b7e1369a035c..c42c8b89fd46 100644 > --- a/drivers/tty/n_gsm.c > +++ b/drivers/tty/n_gsm.c > @@ -3585,7 +3585,6 @@ static int gsmld_open(struct tty_struct *tty) > tty->receive_room = 65536; > > /* Attach the initial passive connection */ > - gsm->encoding = GSM_ADV_OPT; > gsmld_attach_gsm(tty, gsm); > > /* The mux will not be activated yet, we wait for correct > Reviewed-by: Ilpo J?rvinen -- i. --8323329-943274229-1680682577=:2159--