Message ID | 20230117090358.4796-5-ilpo.jarvinen@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1651229wrn; Tue, 17 Jan 2023 01:19:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXtUDngJXcXfZcM7lgnJmayfeOQRj9bSc/zOlZORLjmvGBofEjcDA5WA1hHKaL2W8D4i4JwU X-Received: by 2002:a17:907:a092:b0:85f:5d72:183f with SMTP id hu18-20020a170907a09200b0085f5d72183fmr2190720ejc.56.1673947148646; Tue, 17 Jan 2023 01:19:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673947148; cv=none; d=google.com; s=arc-20160816; b=kYiPeTOejnM+m3km1D0FX8lnRXB4meVTFINlBd9ftG+oK0EZZXqDql6ZJJufMNcHFy RCKvUwOTg9bUHUggUgnZ+IUN0XlTvmVd6n0OFkCSg5vWPDhSVU8MJrPlcJIp2PahCV2T kY428elOivShymIhG0FZuOt2FfASys5bSrflNZIKKu0XjaTW6NhrS2DLPJqExeuV98b+ cDl/tL/3koO7sDxB0V3Vbg3NVZKY2tLnNqGFX8j4BxI+wnUm5Qkdj2OGWF+IWKHrccJd SkBftmJ8o2mH4qXROlu0+02s30zEtlsmQK47XYWSQRWFbZjqwMnUcYBFwDZH2u7bSW0o r4zQ== 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=Svga7SsiFsN5UXzPSuWC3QCdzpcdEqH2j+9/f+MZ4Lk=; b=t8oEvUUeTQN0qrwZvOYYSEkCKSHjFfc3qWKIPl7YQW6XcnZgGjY9pZl+7MXxz8hlRA k2dspK05JXUXu9mphEV1xKnH5ueFU9NneHuOPR7JJAwVn0G6Pgc/STCrB3K9tntCM8XA d5CBXXUDT+5an3hV23sSl9bggaWSZ6jWUlCm0+8CP3DIB7pJNc3QVBABZvTK0OgexEwl sxIeZLerFmww/E6TBygGPYjvK6HBjDmWqkWWEGZ1wvCZHXISkCa1U1BHQyg8x/q6xrjV 3ijR/lhArl+QdN65sROm9MBuGYMPNdVftS2/MAoiRiQlYkovOqsU1uF8AcKy+qkpT1Rf JLiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dvqCifhK; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb41-20020a170907962900b0084d44bd6939si29670257ejc.508.2023.01.17.01.18.45; Tue, 17 Jan 2023 01:19:08 -0800 (PST) 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=dvqCifhK; 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 S236416AbjAQJMk (ORCPT <rfc822;pfffrao@gmail.com> + 99 others); Tue, 17 Jan 2023 04:12:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236394AbjAQJMI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 17 Jan 2023 04:12:08 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 189A43B65C; Tue, 17 Jan 2023 01:05:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673946337; x=1705482337; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0aHYPToS/jABucyxHBUjjp3ckI/iQBTA/kh5jyn5eAU=; b=dvqCifhKMRekRHAjX3InjzFw9Ho93bCyYJBxl+LkeIZnwu2DEhHBwil/ ENLX5OknAIW7KLVs0/eiPV4cDU/xvJXgORNKQ9d2uUWTYqZ4RTQe3T5I4 JLdz+vmGOVwBrSja/y5fT9VhuUs800cLa8BkLa4TBy/bgW9aGgQahopEt PASYPHWvqBvKigYF1jq7WK3py0WI9/cUOHQcHq/vfqYgfeK43aVl0CqBb z2768nxpftNtJPwqXcQAp+sFhKF2z9N1MRl8pQNeBb3O2+95t/pQo4t0k 9qm7Fv/Abise6EM9LEJ6BDwsV609py5C29YYvjHZMRrDYECnNyD7n8SA9 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="324700983" X-IronPort-AV: E=Sophos;i="5.97,222,1669104000"; d="scan'208";a="324700983" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 01:04:46 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="783174107" X-IronPort-AV: E=Sophos;i="5.97,222,1669104000"; d="scan'208";a="783174107" Received: from tronach-mobl1.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.252.40.3]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 01:04:43 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> To: linux-serial@vger.kernel.org, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jiri Slaby <jirislaby@kernel.org>, Rodolfo Giometti <giometti@enneenne.com>, Ulf Hansson <ulf.hansson@linaro.org>, Johan Hovold <johan@kernel.org>, Samuel Iglesias Gonsalvez <siglesias@igalia.com>, linux-kernel@vger.kernel.org Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> Subject: [PATCH v4 04/12] tty: moxa: Make local var storing tty_port_initialized() bool Date: Tue, 17 Jan 2023 11:03:50 +0200 Message-Id: <20230117090358.4796-5-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230117090358.4796-1-ilpo.jarvinen@linux.intel.com> References: <20230117090358.4796-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=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755260805039521579?= X-GMAIL-MSGID: =?utf-8?q?1755260805039521579?= |
Series |
tty/serial: bool conversions and cleanups
|
|
Commit Message
Ilpo Järvinen
Jan. 17, 2023, 9:03 a.m. UTC
Return type of tty_port_initialized() is bool, use matching type for the local variable. Also reorder the local vars to reverse-xmas-tree while at it. Reviewed-by: Jiri Slaby <jirislaby@kernel.org> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> --- drivers/tty/moxa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/moxa.c b/drivers/tty/moxa.c index bc474f3c3f8f..2d9635e14ded 100644 --- a/drivers/tty/moxa.c +++ b/drivers/tty/moxa.c @@ -1664,8 +1664,8 @@ static int moxa_poll_port(struct moxa_port *p, unsigned int handle, u16 __iomem *ip) { struct tty_struct *tty = tty_port_tty_get(&p->port); + bool inited = tty_port_initialized(&p->port); void __iomem *ofsAddr; - unsigned int inited = tty_port_initialized(&p->port); u16 intr; if (tty) {