Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2116212imm; Mon, 3 Sep 2018 19:51:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZIyeguwhNfDhv9uWZ67IQJS1t+5h08LCapu+bNAXydAwQimMkDJU2mpuqX9xZbzPyoUlIh X-Received: by 2002:a63:1b4e:: with SMTP id b14-v6mr28963326pgm.303.1536029483927; Mon, 03 Sep 2018 19:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536029483; cv=none; d=google.com; s=arc-20160816; b=FDfHbTgi45Yyo83cTswSlHUgokOv9R3wNEgH2/hnPhisarNVXtQpy1aMb1viVVJ5hu MPHTbQYHcwabtZu9unOnmkUNpl4w2KpFSATtob6lRDS8BDG/DmA7TI6YBXb8JoHmgd5e 82VLZKK+BV+MKh5dK5dLkIZuyHfBGRsiFnKdPIFcrnzrMFv8iazCm0UJctBMiKLZYi19 4k4+hxrXZ1uhSxbYIwvbegTToDolVsMREgw1M7FQ6pvinSDJhq4Xw5UdvxHYUlHHOQny 14UtJXPi+0yoxp9pwOkQ9PeLuqSVg3lZWBQ6c6t9cKueT5mRmi3jb+hxLo10mYDOqVDw 4oGA== 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=Cdxdf1nldZEi8RFCj/e5+/wKGAi8Yvs7ozh1di1NMpo=; b=fC4uep72kntId7Cw58Pl8o8j/4QJJn8FyOaisHOt7h8Eft4T7UZdr6g9OCuguI86YK gIUNzvfwpFLdl5cPHiNE4avPbzeMMxLXOXCQVnUCTKcF09LkP7q+5Ue4xspr8qrlGyTB cP7e4HBRo4CKaR/pEPfdnzeg3npc5lnDepWU93wb3ueEH3IvEjapnQ1nVk28pBLzQ59w 8ejgVSj6jbeli7/AJXMiB+9NleD5wyXj5BlpuK+ypqZny29y1Zlww+COtF+Y3uULPe+9 gVGMhHTGo9Vfm23MRac6QFfM3oO1a/aoVYSJdIUDwUvw3wgLXkA852yBME8YhlHEPuJt QB6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="KxounjR/"; 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.51.08; Mon, 03 Sep 2018 19:51:23 -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="KxounjR/"; 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 S1726956AbeIDHIF (ORCPT + 99 others); Tue, 4 Sep 2018 03:08:05 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:33915 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725874AbeIDHIE (ORCPT ); Tue, 4 Sep 2018 03:08:04 -0400 Received: by mail-pl1-f193.google.com with SMTP id f6-v6so896416plo.1; Mon, 03 Sep 2018 19:45:10 -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=Cdxdf1nldZEi8RFCj/e5+/wKGAi8Yvs7ozh1di1NMpo=; b=KxounjR/JZhvaF6qG4+wwjyny2S175AVYEOKwqlvVqOSceE1lDEHish/yEn6xJWOuR nRdSShqUEIefZGOlsW+rf1scndPm3AIFIjVEl4Xj/6FW+LN4yCGb/C1qKogP25wLzB5T MQSnSjXoqxwzF24ZIeu3hD9EiqPi7tD6GK/SFksbYf0VCDnPTQvMlmc/jn5llW2vF17q nrN0Z1YIjztsSFstU2ZkMbuRL9iW1/ej0CJ09DupJxc6aF1kz2GNOI4GLUMyj2i3G7ZR n1CqNysGqlAGfIXJpiyHCBVEp04yj7t9s2QlNN9/zuxSHsHPweFRyGfpMCJ8XeyCoU2a 7w6w== 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=Cdxdf1nldZEi8RFCj/e5+/wKGAi8Yvs7ozh1di1NMpo=; b=jBj5vC4sTVKkSZw5pyMdOD5AlX0yTNs4FeDfyJZtdQLGEnviF4mNtKGSQW1/2KIond XXSJEtN/ko8eX1G9zQckru3LUofi9BLyZ6XquxNuJBl2YGkRZV9cKslQbWU4ixQWuWli RBA/mdyU+9+mgpem6ITsNVgWhQFq76O2kyz7oM8NrkEFp+2HoCzmUeUz8dT/6KVeskwZ +GE6jMVdFnHeYEvAphwVJqV6W2UP1zILAtMaQfqCFUgSF4gu2ho1hscT2AGjKH6mwY2Q 25IAl8vW9ombnQZ1QTNWCjoEQNynSmvuNBbDLXxHR8keO4SeXuAgZRhmeHO8SAmeX7SA oIlw== X-Gm-Message-State: APzg51D0FSY8Arr/8Eg2EOU6yS9l5HD6gO58ZbLlWj6UDgLbnrH9TSBt Q0WoCfoMoLsMvx0h5qjXCak= X-Received: by 2002:a17:902:981:: with SMTP id 1-v6mr26346204pln.60.1536029109928; Mon, 03 Sep 2018 19:45:09 -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.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:45:09 -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 02/25] isdn: i4l: isdn_tty: Change return type to void Date: Tue, 4 Sep 2018 11:44:28 +0900 Message-Id: <1536029091-4426-3-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/isdn/i4l/isdn_tty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c index b730037..3d6b24e 100644 --- a/drivers/isdn/i4l/isdn_tty.c +++ b/drivers/isdn/i4l/isdn_tty.c @@ -1481,8 +1481,9 @@ static int isdn_tty_install(struct tty_driver *driver, struct tty_struct *tty) return -ENODEV; tty->driver_data = info; + tty_port_install(&info->port, driver, tty); - return tty_port_install(&info->port, driver, tty); + return 0; } /* -- 2.7.4