Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2115616imm; Mon, 3 Sep 2018 19:49:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaLRuyR/s6qhya/Q7eJbQkupY8YjuNYbdi6hGK0hpg9ZQ8ESCDwM4PC4CfKHkMbN/8bN4Qj X-Received: by 2002:a62:1456:: with SMTP id 83-v6mr32242718pfu.50.1536029399079; Mon, 03 Sep 2018 19:49:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536029399; cv=none; d=google.com; s=arc-20160816; b=RfH6WIbChKjCzOZDxJqCglZPKGtES+WSfQXKkW80P/WwPkX7A4hakFqfeRoTXaHzfz NKkkRr7RC5bV6dJbNCuEnQBUZrZWyRgxyQiGR5BG4BVwWSOF9AO65gLaeX4fzmQqoJsb ZRNLNmzA3DFFUcyJjjzAFT1oTcGv0hDd/6EdlprUZrJ4m48AKlMY4MzPADCje7X3nm0l wPJ8N+femt7e4J0WMuvM9WhF8gv0WHI8Fg4K7YrGSvVedEUqYszvpWo1g71wExo00GwW dI0cfdDtOqljo2p7TYc2OShgM/GHEW7LRm/jgBvtuEC4hGtP+999h2cYr1lWpJUbyU7O hshQ== 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=gCk8mWHnhtx2R8v563AkPHm/bECb7B3+8+2bdvc1AQI=; b=cI3GPcwcAAt0FUpzf+aFbmDXw/sIP1wG5876vbxqu35Tv/nDLrE/Gq2YUSqKrkMjwV FsbEXOBqYpq6gsSMUR0M2s+/okNlv4BoJq0LBMLeEAmOMxizpQktnu7Lo9SdBn40WJ3F nDGR1IV1Ps4nZD5dyeMOh9XeQV215VhrhFrD0oVtvZ/ylG07jrefwsnNgLDwshCKfeH6 GDFOwpriz7OdLDIcY3biCoqxzdgCFOxmgHjSs2fAlGzhpGpNkBvIRaAx8qXNjdbn3Fzp sPS4j4/4viR1C6oLVzGlys4ItAdIgQbwMmnutv87WP65jF5Mg3U/I6GZHfaaWyMbDaO9 Slig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kXis77Ik; 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 t9-v6si19288294pgr.244.2018.09.03.19.49.43; Mon, 03 Sep 2018 19:49:59 -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=kXis77Ik; 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 S1727688AbeIDHIz (ORCPT + 99 others); Tue, 4 Sep 2018 03:08:55 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:46861 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726004AbeIDHIy (ORCPT ); Tue, 4 Sep 2018 03:08:54 -0400 Received: by mail-pf1-f193.google.com with SMTP id u24-v6so891298pfn.13; Mon, 03 Sep 2018 19:45:59 -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=gCk8mWHnhtx2R8v563AkPHm/bECb7B3+8+2bdvc1AQI=; b=kXis77IkUUCXLOartff6QRvsXnQ25XPDuUeq4NLa6kShitU3rTg1KXOS5kIBcHGdV3 uIPgk8c/PB3YkO1Yk+rSkISlsX9/dTP8O06eM9sApMgdu58f5XRJG3xvL+L6d7soywPY 72fk5vXI37rdGTXiYZdeztpglI9VKOrLLnUk3PFIbv/8SwC7sUBTdFQBeL8rDQtnu5fK Uu0/mvPRWnLCKqSe3fH5G0mLiAGDWJsZrKK4F57wQ7ExDL6RboOqWrjBD7Hg0q1I9sg8 1kRmSrUyAckcgyhDfS8K1JjHLLq4YLW+s/d7YZecVUSl57pUVNDHcwXG/gCbNr0Wg6Du nWYQ== 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=gCk8mWHnhtx2R8v563AkPHm/bECb7B3+8+2bdvc1AQI=; b=NacUTprZwzUObZ6Wxuc4XE8Avz0jjZOXVWfqFuwD/DL0XZUECVvoNRNuQRHc2++66N rSGF3SydQwWO01+HkTI8fZT2kCxeAI/DDb1rAuhOkxWfar4PPieiC3ACrhIl/iiBxI2a ZHotlQ08FXQniCcmtpOgPTQaYAHqvoWFpr0D32PuxYUNlIswhrSmNgQprHr+vRiULzug STxDCgfLdnd2yQyjGS+SbUGAHUP8v3AKGjJKpRbIQM3Mp+1wd3a6TiXkUtuvPPLxkrC/ yosXKTo9hA+H6GzWCgvuk0tZ7UwvZBUij+fEwJ8aTjeRGvBnq5yMhVWfxYJa1y1V0Ml8 RCTg== X-Gm-Message-State: APzg51AMig72JVuT1nXLUfYkVwyjgX+dBAHvVAAd31+vwzUkPihKvaxh vTTd07XUEXugQVnbx6SuXTs= X-Received: by 2002:a62:3241:: with SMTP id y62-v6mr32586471pfy.4.1536029159358; Mon, 03 Sep 2018 19:45:59 -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.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:45:58 -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 13/25] usb: xhci: dbc: Change return type to void Date: Tue, 4 Sep 2018 11:44:39 +0900 Message-Id: <1536029091-4426-14-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_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 --- drivers/usb/host/xhci-dbgtty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-dbgtty.c b/drivers/usb/host/xhci-dbgtty.c index aff79ff..18d661c 100644 --- a/drivers/usb/host/xhci-dbgtty.c +++ b/drivers/usb/host/xhci-dbgtty.c @@ -174,8 +174,9 @@ static int dbc_tty_install(struct tty_driver *driver, struct tty_struct *tty) struct dbc_port *port = driver->driver_state; tty->driver_data = port; + tty_port_install(&port->port, driver, tty); - return tty_port_install(&port->port, driver, tty); + return 0; } static int dbc_tty_open(struct tty_struct *tty, struct file *file) -- 2.7.4