Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2114380imm; Mon, 3 Sep 2018 19:46:55 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdac6LDi7r4NG4TIECDVc82Xe0YN9qIUEv42B+0/kBFFBrDrNyR5V4M+X2wfNm5DxpJhUfnU X-Received: by 2002:a17:902:3a2:: with SMTP id d31-v6mr31160168pld.287.1536029215852; Mon, 03 Sep 2018 19:46:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536029215; cv=none; d=google.com; s=arc-20160816; b=SLAmJgoBFFNR7wI4ZOEvLz8jTiGmDGXLbO1yRiM6IwxYI9Ph26uoNqx8Yl5MFgXq9u QDVsLgiviSnhlOLwX38rBrmS8B81CNGBWV3KaPe/g/qTTn/45LFwDx3zgt2pwDlYICE5 EOzLO0D+wMWXt382iay0kCmUrIk+o/pCRNTtWOHVn20bM0N2k2iuhc/q9kJIGDDaWQKG TagPZ/MhKNSsdDYJ7hdTDKJE+9Fk57ISifjONPlXsbE5QCN6Akk+foOaQhvL7+nZdjek EB0A0AH2nzeQbUxA6vTg2l2fhwo7rCn6I7yRvVibigVd17skELRYSSy0e/SgPZgC4xQQ 80UQ== 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=3hQFNTER0lszd0kvVWEV9kMR5sWuq9dK2/YVDi+Idr8=; b=MYnKOBns9LDMafL7Q+wSpRRmq3Th2AMefrRhYYD1jeWUpUPqpxaZGOF4FxnKndCbdG JcnfMEceIPUD2kQm9vJzzt1K4Qbum/2FF72avvvCrXpQDKkpy/s+9/UgedRm4DUrBNll dTk0DX+kSnnGoATCmvU9In2bIP4lm/Wki3LqkIAVIEHFliFMOwTx2USZCJzGbT6PtOlJ OU2dwRjoQhMOD0nhfsPyL3RJLaXY+1YXolEhmzktSQd5NRtgDy3B5iPGQ9W73bbZSQBF jBPJFU6pxCeFcFQPKC8W3FugkCygpuTFcMIu+z9z2jKKrl06oDVkfYsR3LKbqXM57X7C 7xew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VCPVzREE; 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 u2-v6si18774979pge.585.2018.09.03.19.46.40; Mon, 03 Sep 2018 19:46:55 -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=VCPVzREE; 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 S1727321AbeIDHIS (ORCPT + 99 others); Tue, 4 Sep 2018 03:08:18 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:38531 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725874AbeIDHIS (ORCPT ); Tue, 4 Sep 2018 03:08:18 -0400 Received: by mail-pg1-f193.google.com with SMTP id f4-v6so891173pgq.5; Mon, 03 Sep 2018 19:45:23 -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=3hQFNTER0lszd0kvVWEV9kMR5sWuq9dK2/YVDi+Idr8=; b=VCPVzREENBfb8A3S3qPc2w/U09HYMnR5XjohbR7s87xH2founlXnJ7O2LxYkSefiuq KsuC0X422xiff0z0Rlrk4+ofOXd4g1EIaYHnlxpKKNux/l7AB3XHg9KKsOkO4P07Rws7 hJqi7OObHxBUF2Mb0q1XpiUSrvJegONnM4mZZULdG//xUDPAczorNWMFdhEoAN8mkd5r FXPlZvM7PP2RPTnM19wOnLaGM3+bSK/bN3CM40wstgm9dcjsSGP2xDJoovFMHtcNciL2 nPsZIRvd8rg0a4e6qnnO4JXKdGmmAlU++jWLQRlXmfQntrU61+HuBTGxUIK1fUCwTDtz RVng== 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=3hQFNTER0lszd0kvVWEV9kMR5sWuq9dK2/YVDi+Idr8=; b=iZm5bCcVu/CLRrBoGkONeNYx+dhJiyKI5Dfja/khi5zlvv8VDXUNXWxUWfMqfp1gNa s1Ucb2QFzaRcrdVru2TNknXN4WAa7CyC1ek85CGol9J+BCiSqwtnTSQI9zZBykSzIBF7 jh6hDTzS25YkKPX+msfLpXUy9+dylABHSugb9eRxIgmMV+diq8TCLDW3y8WsN7vWFIq5 ZX+MWXgNhC12UQyCNGQgUNzbQK0rx5YG3AdFKRkq1V/eYMoLEDZ/7V7JDJYrguz13mLj YxB+zDA9KF5SkDHLYvW9CHs/OFl/yEp/80rg35ibTAIvq8g5G/UnlKuDZiDx46bUXeX+ Nhsg== X-Gm-Message-State: APzg51AUrWUBlQghUJBI9f8U19+lczC/IRsnQ2rG18bv5c/zHVy4Ec/f 1zB4LFU1t8ycJQixYQhj0F8= X-Received: by 2002:a62:6003:: with SMTP id u3-v6mr32916616pfb.114.1536029123060; Mon, 03 Sep 2018 19:45:23 -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.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:45:22 -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 05/25] tty: hvc: hvc_console: Change return type to void Date: Tue, 4 Sep 2018 11:44:31 +0900 Message-Id: <1536029091-4426-6-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/tty/hvc/hvc_console.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/tty/hvc/hvc_console.c b/drivers/tty/hvc/hvc_console.c index 5414c4a..13fad62 100644 --- a/drivers/tty/hvc/hvc_console.c +++ b/drivers/tty/hvc/hvc_console.c @@ -329,7 +329,6 @@ static void hvc_unthrottle(struct tty_struct *tty) static int hvc_install(struct tty_driver *driver, struct tty_struct *tty) { struct hvc_struct *hp; - int rc; /* Auto increments kref reference if found. */ hp = hvc_get_by_index(tty->index); @@ -337,11 +336,9 @@ static int hvc_install(struct tty_driver *driver, struct tty_struct *tty) return -ENODEV; tty->driver_data = hp; + tty_port_install(&hp->port, driver, tty); - rc = tty_port_install(&hp->port, driver, tty); - if (rc) - tty_port_put(&hp->port); - return rc; + return 0; } /* -- 2.7.4