Message ID | 1536029091-4426-15-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="uQJtD9wt"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QaY3Jg+L"; 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 424B6m57Vsz9s4Z for <incoming@patchwork.ozlabs.org>; Tue, 4 Sep 2018 12:46:24 +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=y/lqw4vt2PGQHHWUGFKCNP+K/NQB7NTwUhUJeVDUAEY=; b=uQJtD9wtt30l06iXk1IZ3O0PDL d97SpDmL3hK9C8gTF97rRqEr45cpft6gMw+QCynwAxujEPhFVbBWB9yyeiuGvGLYi6ysV/n/nHfO5 BZSMLgon9em+LHYbr/GpV9dpoVJ83G+I2KWmZKLmrPEEpxxD+DwfyWZMXdImvf1aP7TG87sNh/kHB aolrfSmTTOivs3Z4FnW5HvmG6QvahnvlZoY4CvBxheeaLQ0AsRA/pC49Vc6a4UFDL2vW7OfRj7VIy aPQcInJnWl/ju0Wb2m8jMuGg6hJh05Y6FfP37onHg0OSvOOXfeW63dv8e/KD++LEZUGrDywnEQLol 7icsHd1Q==; 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 1fx1M9-0005aF-7g; Tue, 04 Sep 2018 02:46:17 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fx1M6-0005Vh-AN for linux-um@lists.infradead.org; Tue, 04 Sep 2018 02:46:15 +0000 Received: by mail-pf1-x444.google.com with SMTP id k21-v6so895751pff.11 for <linux-um@lists.infradead.org>; Mon, 03 Sep 2018 19:46:04 -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=HF0PCC9uCoqxnQ9gpvOU6TDEMKqHeKkM4XeDXQDJXAM=; b=QaY3Jg+LUbi6LQ/aa33tuRoTX/1JjEd63W8B2TSxWEL5lJ9KIpQD5gqrtHlt3vxnMO dkDNbosJk4FTRKImHBopXlCVuo0WJhPiGAkd9j1VhVNi3nt70gqrZUygbygxT9dPsOE8 6gkWuI0CAvYU1CE4NUzK4cQLbqNzFZiojdzR4JvhQP51Mw+r/t0E5Xl4UPJqz1pTmvqM /m/RFtkfGSGGIFDNDtJZGrb2yWWCVsUNCoC/ZJ8bQj/KAafbDyDVZ8olNfuy9viHt5/7 QQU/z+5fQ/Cjh2wSF2XGIU5fNMiSfnvKrM49z4nu5uXu6WCrztkdaQFUQ1LMGwW2dOxc RyxQ== 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=HF0PCC9uCoqxnQ9gpvOU6TDEMKqHeKkM4XeDXQDJXAM=; b=fhXn9v3Hzp0pu2drIqbR3LhGNB4JtpjzPlxFqj/CT9k8/ZS1pYcPlNIwMeMBNENapC EAg6OrKAT3kg8PYok+9e+r4+gBtvIeH35uw420JfNIHospoWMRuzqcbSUV3izCjZxqX1 rVCy+8xCGbZdZMuDiwYCCl08Sn/J3rlb8vLwdPSBDgdzP5UiF29ZJeiWFcRs9V1gMHne yXkyFpf5HBevhyiXJ/nKssc6vjv1w4uQ1K5FYBM7ja0W8MWGRm/f+SY6Ys/yanT45FBb acw3GGRwu7epi+7Q0tOzEtHRdKKvs9ntM0ifOgp4xG/YOVZv65CAZu9qtjIFo28cFBOS d5Pw== X-Gm-Message-State: APzg51BX030WVXP3OhjhFMMip4t3K/XY7kpg7RVq4+HBmHmDjv+DJM2p cuBBbv2BTTBhVXPDbNwOalOQvk6H X-Google-Smtp-Source: ANB0VdZfRaC9KxMLpiDu8nDLsh6bt+ua/83a4QRnKvVM2G1JGINXIqflEQa52rywQJCcHrRJRVjZMQ== X-Received: by 2002:a62:7a01:: with SMTP id v1-v6mr32385003pfc.153.1536029163682; Mon, 03 Sep 2018 19:46:03 -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.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:46:03 -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 14/25] Bluetooth: Change return type to void Date: Tue, 4 Sep 2018 11:44:40 +0900 Message-Id: <1536029091-4426-15-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_194614_376928_C982824F X-CRM114-Status: GOOD ( 12.60 ) 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:444 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/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c index 5e44d84..b654420 100644 --- a/net/bluetooth/rfcomm/tty.c +++ b/net/bluetooth/rfcomm/tty.c @@ -710,7 +710,6 @@ static int rfcomm_tty_install(struct tty_driver *driver, struct tty_struct *tty) { struct rfcomm_dev *dev; struct rfcomm_dlc *dlc; - int err; dev = rfcomm_dev_get(tty->index); if (!dev) @@ -725,11 +724,7 @@ static int rfcomm_tty_install(struct tty_driver *driver, struct tty_struct *tty) set_bit(RFCOMM_TTY_ATTACHED, &dev->flags); /* install the tty_port */ - err = tty_port_install(&dev->port, driver, tty); - if (err) { - rfcomm_tty_cleanup(tty); - return err; - } + tty_port_install(&dev->port, driver, tty); /* take over the tty_port reference if the port was created with the * flag RFCOMM_RELEASE_ONHUP. This will force the release of the port
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> --- net/bluetooth/rfcomm/tty.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)