Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2115213imm; Mon, 3 Sep 2018 19:48:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYsnQ79NQ6TW1w71bGFdD7jroKt4OQzHz6fizefb50OJti3RHvZk+Xzmn1QjbyvWTnT2Pv0 X-Received: by 2002:a17:902:8f93:: with SMTP id z19-v6mr31014468plo.263.1536029336563; Mon, 03 Sep 2018 19:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536029336; cv=none; d=google.com; s=arc-20160816; b=ZKqrFZ65pjzLHb1qNjBUjpdztSi5z2bCujDFwGuUMeb7xMj00uVeH+4xJMKTnX82uf fwyIJ08QzFMbu/UpcymJRGjrb3lftMTklk/OGZa5BSQkMwja90D8KqDNXpx6XHNY9suu BVlV7bhmvBO5Pzj9FV13Asds/ylk03OzzDOnD9GUoltamTKCDsuEE847tMbgb5szaYPO XeV8aaE/NsFsIlgscLAkGLwx/lycq98V4o5sM2U9DCxYR0Nw9US71H6ZHRk5wAfD74LD uvRGs9Xc288sWh88HDuegGS6AhRCorz4K+ipZYnfyxZsw/njf6LBDhtUxAAhsyBRPMmU ZFzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=9fhtRSxRNlhSG2HakM/avAOwn2fzs7e/3lLxQzyJ82M=; b=xc2YKkiqFqJeinzirFc1d1maCbe9AKAOte6G57ic9e27TLBsM77+mgtZrxA7zTY68K MMnPNUXLd2yjPWhb3Y55ckVivxabFJKOl9XgaKArXNEDJGgR/oa7Vf4kmryJ4X53TXQC BcY8Zq/iTKHDkc+64O+4MmGhGUw18OCsunr/5gB2HsGjOP6mlIylcexvVpivnU+k8JiG RFmM7wmzkLPdyHVD+5dxKBr/xmyQQNnCfGn8aoGcmQ45cT3egizEvZ9dFH/uMy3WnVlw 2mdwxoY484e6lPcPIwCl++mAz7h5CV3UkBJ4DntZMIykp7RE8u39xcmLfsEQuuePSm6t nG7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MtxqNB0W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22-v6si20911239pfb.185.2018.09.03.19.48.41; Mon, 03 Sep 2018 19:48:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MtxqNB0W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728156AbeIDHJu (ORCPT + 99 others); Tue, 4 Sep 2018 03:09:50 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:45597 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727156AbeIDHJt (ORCPT ); Tue, 4 Sep 2018 03:09:49 -0400 Received: by mail-pl1-f196.google.com with SMTP id j8-v6so879690pll.12; Mon, 03 Sep 2018 19:46:54 -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=9fhtRSxRNlhSG2HakM/avAOwn2fzs7e/3lLxQzyJ82M=; b=MtxqNB0WA/xheF8oer5OfxpHH+cnB/mFS5n9FY2+qIngoXU2LN6P0ny5VhtK1xJhbi D8ATKUqQvESgCYvBa6wJ6P1rAN1s01M1QcKskSibu61DVOa0RoiUs83RTrNmu6/XM3NW bynC2ACo8vSZJxZUSDYPOxFnJiOcAGHWocCRm3KiTyJnbMpu3iXC9GrWS+ngdbYg/XnI GbBvce2BsHGIHsbrP2tub+g789NyfsB1vl3vkW2Z+pDQ0wOXDIgtgeK9WuRRzrjxrlWP fXusYtUOTBC/xkFSb4wmIPQ1bQQSy3UkX8Ww52YENeadayXKav0ZMV2ImRPxm5eDFmR5 8Nig== 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=9fhtRSxRNlhSG2HakM/avAOwn2fzs7e/3lLxQzyJ82M=; b=PwAC0DoxAOlPlKKUbiI8jhJbscxD65N8H+r9hfbRUYhA1C6LKvx+z9eIB1PgNG5OAc 5uitjzK2Mdrs8gIv3u6WlV79XByv1TJeUNEBOdHNUWhKQQTawmdtm3UjTLB5XQrQfNKm h4B4zj1ZSwaJNr9OCU2n7jHUDzJo1HzPF3Nxu9VQNetiPL0jhQGlTAaegyOfatEuICzO cvqiJPoykG2CzN5X0olzczBVhL1PopPOCY6UIKX6N8iov1ylbZdzYV29/b0jw5H9VHwF SDS8/jAW+cVwkxOIMlfZ1sXh23RSgXgxyR5zDnFsaswkuwoQyhNdsUfBaeRAw79r6Ode PdIw== X-Gm-Message-State: APzg51Dbjx6GGVohJ1iM+6VF/Dt85ovOyzjyzgd4zigrd6bF3qXEeSMA AIzXGCVe1e+UHeUdHGnu1C8= X-Received: by 2002:a17:902:bf43:: with SMTP id u3-v6mr31343352pls.88.1536029214501; Mon, 03 Sep 2018 19:46:54 -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.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:46:54 -0700 (PDT) From: Jaejoong Kim 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 Cc: Greg Kroah-Hartman , Jiri Slaby Subject: [PATCH 25/25] usb: usb-serial: Change return type to void Date: Tue, 4 Sep 2018 11:44:51 +0900 Message-Id: <1536029091-4426-26-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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/usb/serial/usb-serial.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index f7aaa7f..5cfc2ca 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c @@ -192,9 +192,7 @@ static int serial_install(struct tty_driver *driver, struct tty_struct *tty) if (retval) goto error_get_interface; - retval = tty_standard_install(driver, tty); - if (retval) - goto error_init_termios; + tty_standard_install(driver, tty); mutex_unlock(&serial->disc_mutex); @@ -206,8 +204,6 @@ static int serial_install(struct tty_driver *driver, struct tty_struct *tty) return retval; - error_init_termios: - usb_autopm_put_interface(serial->interface); error_get_interface: module_put(serial->type->driver.owner); error_module_get: -- 2.7.4