Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2114647imm; Mon, 3 Sep 2018 19:47:34 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ63MCxQjg0+jz44NfsiNSFgVJFxMJlcafNd8To7+nUwg+VX9AWWjmBHkg2LO7BJOT1Vyte X-Received: by 2002:a62:1544:: with SMTP id 65-v6mr32379297pfv.178.1536029254669; Mon, 03 Sep 2018 19:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536029254; cv=none; d=google.com; s=arc-20160816; b=AnOfvVzKXbQ8Hp40wyQAgEm5c78PZLv+teb6Z1qV+1YL+xjQMdz9HtvCNIpeqlJHh4 ZIQOiEhyeFeuhhlSUzAAzI22hx/JB61dZmgVhDcJnyVDeP4uo7ctHl/FHTue26jvfTv1 CiuRJQRqwMXyYswmKg+RorcJ9+UyRFwblL7ADCLWvaqDWxLh8B4Nqou/ma8in67yZgC7 8t6tbQR+H2iuMNnYdJ64vJVD4GiLP4fRm0eaCzBJTqlFyLstAkHoxWwDcOr3ediUS89k 1wR1rdX2xg7xequcwZKijpaJfkc1Lk8J+2FyatJ9ycC0+FGvgLDb0W9x6bdM2HuBkT5J Mygg== 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=sBHYUYXanNFuc3sJAGyPoTQKmVfJwobdSV5M3vVBguw=; b=rKLrFGyjizPEV+IXQT8q14t8CL9xn6VdjSwN2uuDaOsz8OSnTiiZJCciu9hDdOW88/ TRfK8fz/TNmUQZUN3cZHQj36fBf8OfJ1N27oj07gPBbEB80/vxvYmGuAaZbhPt7IkbQo +n9Yp8xW4FqjrcuTEMvoiUwR2ycxngbcOUGTqxxFCc/FCF9WpcZoLUWjW5uCDwhwqc1I 92yz2PSpUkNoPlJ+vJsA4bGn04aOPGokOmYfsATtIDM8SCKog2qK1/EkacumxLKjbqHk HkH0Az9ENysa1nFN61jucyQGTiJguwWTfvDleS7daL1YACPTu3IqDGapmDAHiWYuwOJz n9yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KsA9keTe; 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 j9-v6si19372447pgm.428.2018.09.03.19.47.19; Mon, 03 Sep 2018 19:47:34 -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=KsA9keTe; 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 S1727645AbeIDHIu (ORCPT + 99 others); Tue, 4 Sep 2018 03:08:50 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:46857 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726004AbeIDHIu (ORCPT ); Tue, 4 Sep 2018 03:08:50 -0400 Received: by mail-pf1-f194.google.com with SMTP id u24-v6so891213pfn.13; Mon, 03 Sep 2018 19:45: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=sBHYUYXanNFuc3sJAGyPoTQKmVfJwobdSV5M3vVBguw=; b=KsA9keTen4eBHIGRYysr/wKT6/LJFm9JqHY9ek6MGQzsHg0AGki2RmYG7mpAnnmqk9 XtL/JoDJHeIdS0L68xXxLOQvjjmAUff7norRMYp13oHhmQSvZMa0RzSNUy7oGt4w7Oqe eKE7Bx1OXTvm8NERoDDZ2ws5e95ecu9kizSTm5t19pj48+cD7hKBS/FTTRWdTGCbbqHQ 6p2QyPAO+MJmFAzQd7ovr+LZ9QM1fkma9y134UacD/JHly7d085juVVGcyJ2f6/cJiY1 9ozc0uEX4kSQixpnxh+R194lLrXPtRqJNZFYnIqW1yMYcfULQsSw+ZCvOviNN+N+ejK8 lPIg== 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=sBHYUYXanNFuc3sJAGyPoTQKmVfJwobdSV5M3vVBguw=; b=F/uEuhmjHfIZutiO/2XqwrjhbtwIGjYGTINDm8IpC25q4+wHY5xEc3BVGFTcbUFDyw u6gHGwZGZUY042HII0Ks9/dIv0n9uNP4Un8EWmgSV2CE2qaAEYAHs23GmKeIBRmwRSHO 32eF7uD8BTmnTGlfRK3lCFX/uifpIupuqI/O4VLp0EN+Bq5CItmMVsDqJbrjcdovDbLm qPsEV84x61UhEXvGAGRGEsPs/SwFqzi/jbF2b1hosZLqhD2Mt8wpysaAK8hDYJPYk/5a QB2l9oNQhmzTGsxg32yE8I8tNpYhUGD8PCysq0zNAPwrpLpzxj8cQiltN9/7h8UnqvM5 BInw== X-Gm-Message-State: APzg51B7bEIRuhN/t3DatrYgZaF95Cml0pR+hjx7kJlfDEcTt0A9a5bV SJKU2/jaffM3wD3w8JkDJUa8DvdF X-Received: by 2002:a62:219b:: with SMTP id o27-v6mr32386618pfj.235.1536029154665; Mon, 03 Sep 2018 19:45: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.45.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:45: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 12/25] tty: vt: Change return type to void Date: Tue, 4 Sep 2018 11:44:38 +0900 Message-Id: <1536029091-4426-13-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/vt/vt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 5f1183b..cc72254 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -3222,10 +3222,7 @@ static int con_install(struct tty_driver *driver, struct tty_struct *tty) goto unlock; } - ret = tty_port_install(&vc->port, driver, tty); - if (ret) - goto unlock; - + tty_port_install(&vc->port, driver, tty); tty->driver_data = vc; vc->port.tty = tty; -- 2.7.4