Message ID | 1536029091-4426-11-git-send-email-climbbb.kim@gmail.com |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=198.137.202.133; helo=bombadil.infradead.org; envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RVzu+v/q"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="bnO4l0Fl"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 424B6Q3YxLz9s1x for <incoming@patchwork.ozlabs.org>; Tue, 4 Sep 2018 12:46:06 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=bra6tEXwPFa9epjnABSQqlRKBtlF187SRj7Po3kTO9A=; b=RVzu+v/qpvVLU8ADTWtW+PRul6 N8Pu48uX9GIacN0jwPLKjokutz0q8KLvJYX7ALMG9zmuFCitmhzP63uqrTlpW2a4MtgYjx9sxeEv0 9fdPwnKT9QwfGRgFCasgWw/Pr6vK2VDQP8HnQu1P/ocxWyDBzT+kiKCIPKAka7N87TZ2zn38dJG08 QcRMiOfnMfoADmFw/wsLza414IICHR5EKjrO9AXQUdjsJd7vIocFX7F+lmtfrn0qav+S7DuCyyy3I 8XhKug7fnOW9mGzHyru6knLaIb+sCjD1mRZWCUN/In9BUfy4hsi3QmayWPTNzXDP1wUBglUmbyMeY o/stTVzQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fx1Lr-0005Ti-J6; Tue, 04 Sep 2018 02:45:59 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fx1Lo-0005Oj-Qf for linux-um@lists.infradead.org; Tue, 04 Sep 2018 02:45:58 +0000 Received: by mail-pl1-x643.google.com with SMTP id x6-v6so878544plv.10 for <linux-um@lists.infradead.org>; Mon, 03 Sep 2018 19:45:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qchqH0U+NKnSgzy5OmR5JDqm4OjRzNr3FPKLhiuVQoE=; b=bnO4l0FlSd3A2icpo/kTlsTkWn/ZlEY4nhsjN5kMBX2M35z1GeH3Fp8gMMCrc7CRGH s1H7IryVse3PMjNmL1Iag8RPmsg4h3/E3gN+ORMU6kg4aZ1zfhvSmKSUSkx+dCv0IXRS d9pksj15ontYb+Ah92cmixiRXepDQc7ZqXTkeT8Ti1iNM7nYPkyBWHR9HvDrlslI+If4 kqWTy+Zksdap9rZmRhg/Ti0hIBXf+V/cTZhk6dZDQnUbKt7XwDUzyknQIdMgcrnxvoMP 2OrcwxGD9OtsfeQtduZVeYQXCwlFhxm42afiy2TvOriuKLYx3YYzmlBk6rAPS4QGXKkA mx1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qchqH0U+NKnSgzy5OmR5JDqm4OjRzNr3FPKLhiuVQoE=; b=Tpi2CMDXRTU3PWwk/Rdq13Q186+P40fYznol5agQC+3Pds934R5i2uoBshWqE1KDxz pewZaqmJbim1E0l1OMgq8gqjaQW8fknEIDNQ+emU2HvwEy1Hcwdeg6kcxiTqydBAs+q8 XuUiGuDQLTsvTWcTnnvWTHJhT52qyWCDx4YuMeiONILh0P8y8KaeUj00IDL2jmGiLvo2 +QBH06Zv4Ipg5KKEwgwRo1Gkcsj824vF9rlfEogA5gcb20KMrsZfRSB5UCrCUESMNplm vFNLgd2H4hl+sPfm3jk3TBLXFig++2qf/ezE02DsO0ROxMbc84TnyxQ2UEkJffO3djpw uFqg== X-Gm-Message-State: APzg51C900DWIHCUiWYY2KaMR3xqrJQ8Xe6N2e3AYoZOh+wBvrEhpUqb MrP6DMXNVeKriy2najbP1hGD3tlw X-Google-Smtp-Source: ANB0Vdayc89WAx5QvMYalBWiFf+hwaCiCP1x/b4rIi5gy3mles9JXL3EltbI3lYc1LsQREQWAmowtA== X-Received: by 2002:a17:902:5a02:: with SMTP id q2-v6mr31533319pli.253.1536029145329; Mon, 03 Sep 2018 19:45:45 -0700 (PDT) Received: from climb.lge.net ([27.122.242.77]) by smtp.gmail.com with ESMTPSA id w16-v6sm33663284pfi.101.2018.09.03.19.45.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:45:44 -0700 (PDT) From: Jaejoong Kim <climbbb.kim@gmail.com> To: linux-um@lists.infradead.org, netdev@vger.kernel.org, linux-mmc@vger.kernel.org, linux-s390@vger.kernel.org, devel@driverdev.osuosl.org, greybus-dev@lists.linaro.org, linuxppc-dev@lists.ozlabs.org, linux-serial@vger.kernel.org, sparclinux@vger.kernel.org, linux-usb@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/25] tty: synclink: Change return type to void Date: Tue, 4 Sep 2018 11:44:36 +0900 Message-Id: <1536029091-4426-11-git-send-email-climbbb.kim@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536029091-4426-1-git-send-email-climbbb.kim@gmail.com> References: <1536029091-4426-1-git-send-email-climbbb.kim@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180903_194556_890218_0308B2BA X-CRM114-Status: GOOD ( 12.39 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:643 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (climbbb.kim[at]gmail.com) 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-um.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-um>, <mailto:linux-um-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-um/> List-Post: <mailto:linux-um@lists.infradead.org> List-Help: <mailto:linux-um-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-um>, <mailto:linux-um-request@lists.infradead.org?subject=subscribe> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jiri Slaby <jslaby@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-um" <linux-um-bounces@lists.infradead.org> Errors-To: linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
Change tty_port(standard)_install's return type
|
expand
|
diff --git a/drivers/tty/synclink.c b/drivers/tty/synclink.c index fbdf4d0..6e7e4d6 100644 --- a/drivers/tty/synclink.c +++ b/drivers/tty/synclink.c @@ -3355,8 +3355,9 @@ static int mgsl_install(struct tty_driver *driver, struct tty_struct *tty) if (mgsl_paranoia_check(info, tty->name, "mgsl_open")) return -ENODEV; tty->driver_data = info; + tty_port_install(&info->port, driver, tty); - return tty_port_install(&info->port, driver, tty); + return 0; } /* mgsl_open()
Since tty_port_install() always returns 0, the return type has changed to void. Now apply this and remove the obsolete error check. Signed-off-by: Jaejoong Kim <climbbb.kim@gmail.com> --- drivers/tty/synclink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)