Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp286719iof; Mon, 6 Jun 2022 03:33:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzInsTK3zzpieB6gYVK+4ufxpD1+Lmnd6+k0+Cd0bctnA1m8mxF9Dd8tiOXFXAVTtDJIqkB X-Received: by 2002:a17:902:dac3:b0:164:13b2:4914 with SMTP id q3-20020a170902dac300b0016413b24914mr23618008plx.135.1654511629175; Mon, 06 Jun 2022 03:33:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654511629; cv=none; d=google.com; s=arc-20160816; b=Z1VkxNhiaJ5trbcBKaFg8fhaPczd+fC63OVq0Lj6lL3NfqobQgE4LOGRVfCDPYRAcN DOYRDqEpirNqtGw8umVLM2ZAYiL8w/9nigmaDVbGLfCKip/W6RDXIRQ0YVH+VOoW6ywF Cz0SlTNAK629s66JjTSJCAKmqhi0NhnYh6SfkuLOOb+4pOcbhgGB5ORNzlTUfEZ51xoq 7Cj8vi4IpM0jMtYR9gDguLGYQgtC6gTKqAHXBqWREOucMWxI0f6ApGPlpNEJAkH2LAJT 4YRiU//yuW4N09CNBMMs4gfYFFvpPl2eXtAlANEJqy49bEt5jkSSBY1IICZ4EMKOtrEb vkIA== 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; bh=4fsCwoXhejP7QBslRwxsxebcLMyl8ynO7DvUY/bfFcU=; b=e2ufYCVRfkIpxB8FF6GkW0Q+aPKlmxoDW4ekPqptoeqCwSqos0PjDMQlyfTBtr74uc og3/TkNacaXIRmkM6XFm6qRafwuZJ26W6TgDxOjT/5UjZ+i4mp6niF87UbNFuMiXVIG0 Ociu58VXbhAwZKVo2dZdKtdmG7ua6+3K3ki0IfArf/F7JB/CB32YJrRdg5wTzYNiB7+G MSVYPkraYEBXKDYg6q360E1uXc81Vo09F60kta689FLG68dEqZoPW1qDkCuApZtryB0U ZlSHiqml0liOQ256bndTLUVas9tnJzPEEiFQf7Av3hSwdPLHetg0OyWQAi2lA/9By13X YSag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VcnxHfKP; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u19-20020a056a00099300b0051b5eb6a121si9114562pfg.359.2022.06.06.03.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 03:33:49 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VcnxHfKP; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 99A9D1EA843; Mon, 6 Jun 2022 03:12:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233628AbiFFKJ4 (ORCPT + 99 others); Mon, 6 Jun 2022 06:09:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233585AbiFFKGk (ORCPT ); Mon, 6 Jun 2022 06:06:40 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA50B135682; Mon, 6 Jun 2022 03:06:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654509994; x=1686045994; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jC/dgPE6/D0IhQzMV7QXUvA9O0C+12y7m0vQyoLFb4E=; b=VcnxHfKPvMzBlK80t1xl34mZARS403wS3CEqoizibCL3bNH/hpl8xkBq Nf6Y6gBv0+fHwfb3N+RPOXGWkcBju93ddOCDXT2XopE5rGo9BBTRUrnam AaaNAftiTL/+zk491jhhFz8BN+Z9KdYmO8IS/+ibMziAlUCIN55gMkFXe pM/t71IGmYfMvLq1q1RYuZYDoD9mTjHHgxlaSNpGZkFKMSlHKhvjk+fSj 7JMVKkyYkvTMZ/OtrMI58BBSGrTLt4X/4QI+5QsYTdqI76N7Zdoi9lQKC ofgL3GGzm8sj0wF+UueI56u3znFXOiJqCbocgXxYz3FCnBGcDbd4I8REI g==; X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="362987098" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="362987098" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 03:06:34 -0700 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="635523922" Received: from amkossek-mobl1.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.252.57.11]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 03:06:32 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: linux-serial@vger.kernel.org, Greg KH , Jiri Slaby , linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 35/36] serial: sc16is7xx: Remove serial_rs485 assignment Date: Mon, 6 Jun 2022 13:04:32 +0300 Message-Id: <20220606100433.13793-36-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220606100433.13793-1-ilpo.jarvinen@linux.intel.com> References: <20220606100433.13793-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Serial core handles serial_rs485 assignment. It is safe to remove this assignment because sc16is7xx_reg_proc() takes port.lock at start (and sc16is7xx_reconf_rs485() would too). Signed-off-by: Ilpo Järvinen --- drivers/tty/serial/sc16is7xx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c index b3162dfe97b1..2ceecaa4a478 100644 --- a/drivers/tty/serial/sc16is7xx.c +++ b/drivers/tty/serial/sc16is7xx.c @@ -1143,7 +1143,6 @@ static int sc16is7xx_config_rs485(struct uart_port *port, return -EINVAL; } - port->rs485 = *rs485; one->config.flags |= SC16IS7XX_RECONF_RS485; kthread_queue_work(&s->kworker, &one->reg_work); -- 2.30.2