Message ID | 1536029091-4426-22-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="IVW/3Im6"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qiVcnF+y"; 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 424B7P1PVjz9s1x for <incoming@patchwork.ozlabs.org>; Tue, 4 Sep 2018 12:46:57 +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=gKw9X0dbHS1nx7aBJrRDN1G+iEW22o1keCr4HNcJsFU=; b=IVW/3Im6VfMsrtZ8919MjYxWiZ esdCUPbVCBplkb9nUpu1wSusTDuh4jlbmvOu10fZ3eFCx/v+FE/wKtnwMYXq6TMWi7NkuVKqBKd5e U7Mepz1GcIqJkMqp8CGoVVwZqtEvYKjA6vN9JKv7FR9NOQNfhpvqNGffS6osLmlVcjlHvUrkmGGrT wPSzh+r31Ul9BCX7qcXWDHI1OPEmJK2nZhZDjN1lP5/AJGl965C9MSRenHUljEGGuTvkpruvQs0pc fqKXpPCEaHFg1Fj5kPPWgYowFOEyfFrMnIqnjFo0HIF3hv/wvVIyhpX8y5USKtfzN6W+zTlAxbuuM 4wCsoUNg==; 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 1fx1Mg-0005mQ-GZ; Tue, 04 Sep 2018 02:46:50 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fx1Md-0005i7-8Z for linux-um@lists.infradead.org; Tue, 04 Sep 2018 02:46:48 +0000 Received: by mail-pl1-x644.google.com with SMTP id g23-v6so879438plq.9 for <linux-um@lists.infradead.org>; Mon, 03 Sep 2018 19:46:37 -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=7uAJRAvdTqzcpqqjK5tzDqg/rePnC+seodc9IPByu00=; b=qiVcnF+ySqN7ITShcOwC3qNgjM3JKqbmljNdAqNdyllcVbWnPz6Itm2idIo9p42Alj ZDYiIJ4rn2N8ntUIdVqN8hSr5A1K1mpp6RdMU3r84HK8i+aR7AI5/sQaaOwGMNqVjI+D BMwJD+42vq3QBhEBzU6McJeKTvsUUtgKV1JtMnmR6dwEAKtiGteyxjsVyP3/xVfuCKrk 3jroEOtR65o4N+L32fJ8/e5Sr5NlEMlyMtHbQhKMevX+bMwEu0wu+Pj7wq4J8nMCAYGv QrfmAlgf/VPuqPxG+ojWGvasclRJLzGhnIAtequ5N23MSwb6JvU7kaUlZVWBCUmZQDzr I+0g== 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=7uAJRAvdTqzcpqqjK5tzDqg/rePnC+seodc9IPByu00=; b=LyAgfEmlzDxFst3cCH2Ob2D/tOfmeCyzLHDPK6/htzfvDfTHa6bPnSqzzjckEPR1K2 Nhg7KSt4b6VZPHvQRKINS1qv34gEszIa6cGKdmfRO6smx6fJKhS2dcqfHXifMGBW1s9S zYTx5oTzn+ljJ4tEYWr+6KRYUdNvDNNmoSzBTZU5kz4y0AWaa6P7NHJLgP9AMo02voAa drncEIb9OrtFNVYaWi1NBE5FRB6wqCtMa3rAfR6+HZ2OaUxC9oj8D6lC0v8ccTQiknAS fVkchMeWqIqk8RPN7jJ1Xr/809CHH520IYVKqudo0jI1QE4ziApPbEfXCzyavZdjwggJ ruaQ== X-Gm-Message-State: APzg51CyPrF347ogspWB7Sj+BaBzIIdNskUrSV5FbF5sDD1LimnC+oUU A+jeGrBfxNKkDZI0Mspi4f/KIjFJ X-Google-Smtp-Source: ANB0Vdb9myTURZoXqFquAqZsyos/o7S6Qr6wTdmjZEKLC+KG8zP08IwRTFrTKxV/1UXVeW5jyKmyVQ== X-Received: by 2002:a17:902:7c8c:: with SMTP id y12-v6mr28570270pll.283.1536029196519; Mon, 03 Sep 2018 19:46:36 -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.46.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:46:36 -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 21/25] staging: greybus: uart: Change return type to void Date: Tue, 4 Sep 2018 11:44:47 +0900 Message-Id: <1536029091-4426-22-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_194647_336899_DA0A88F3 X-CRM114-Status: GOOD ( 12.99 ) 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:644 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/staging/greybus/uart.c b/drivers/staging/greybus/uart.c index 8a00632..182155b 100644 --- a/drivers/staging/greybus/uart.c +++ b/drivers/staging/greybus/uart.c @@ -393,21 +393,15 @@ static void release_minor(struct gb_tty *gb_tty) static int gb_tty_install(struct tty_driver *driver, struct tty_struct *tty) { struct gb_tty *gb_tty; - int retval; gb_tty = get_gb_by_minor(tty->index); if (!gb_tty) return -ENODEV; - retval = tty_standard_install(driver, tty); - if (retval) - goto error; - + tty_standard_install(driver, tty); tty->driver_data = gb_tty; + return 0; -error: - tty_port_put(&gb_tty->port); - return retval; } static int gb_tty_open(struct tty_struct *tty, struct file *file)
Since tty_standard_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/staging/greybus/uart.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)