Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2115153imm; Mon, 3 Sep 2018 19:48:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZlMohfAZDE5iIB+pzusuURJVZmlKBUrrL++bJTwPNxtHTXaJUdHykSydzTGzoQJqeIZFFk X-Received: by 2002:a62:3703:: with SMTP id e3-v6mr32366993pfa.117.1536029326015; Mon, 03 Sep 2018 19:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536029325; cv=none; d=google.com; s=arc-20160816; b=Gtr2pn/wMdUWqdMFLQBbkp6sGCnh1Rg/f17HUm8oyYSsTahh6/gbuJfRLka212yWGh eAlg4LSwbiO2lj1rs4jQlGz0m8POH6DizDzvO+DffWUHSWVQi9xnii1c3RmK/eEiq2cS Ybyxhu8tltAjUN7LwxQoMDKJ4ChRxwK5/oznB1javNhrAZxqu5VbiJbwVkRQDIsfVHrg KE9asJ/0945VfT666gBO0fDCsLaZCJQTa5wZM+/Ftrwy9xRQylG6S9BeAG11FQS7aJsq 2jXC+5Zvx43iGH83I///xqjUA+WbB5RtFhe8PUTqPxBwGRTCJNGiRTedEskDg3wDiNP9 Y0LQ== 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=K9WSdI4xIWm95WefIAgmlM2Cw4JjRPctJYgLLWJhf3w=; b=Hm3/5pi0nHVZSn4zXuOoxPBoE+ejZ4K6iov7A9LGIGG/D4hyUkaX4jFJWBVqzJnZfh YyivokQPVz1S1gwhMm61IrNP48zfkajxe08xEELMZXRTighsMsz8V2JM31oYmSLOkUGe EDcdflhrDpcPah9J6MF5RCxaT3zW1KtmSI0tmFzvyCnulFPz03izJew6ouCGeT7xi6HE SI12sAwVIyUytyyclDs4aOfCZpz/LR+dWQLFE9sHhrZJW0FoqRBF0MRU12QHvUXy2N21 D4aifccRmw2DBR6Yu04y6+A/0ZyAqW7sfX9D/uWeFlyo5iKrKQ8qzdpHN71033BtiIgK 4frQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D+huqxdj; 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 s17-v6si19217065pgi.284.2018.09.03.19.48.31; Mon, 03 Sep 2018 19:48:45 -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=D+huqxdj; 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 S1728094AbeIDHJm (ORCPT + 99 others); Tue, 4 Sep 2018 03:09:42 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:36842 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727156AbeIDHJk (ORCPT ); Tue, 4 Sep 2018 03:09:40 -0400 Received: by mail-pf1-f193.google.com with SMTP id b11-v6so916996pfo.3; Mon, 03 Sep 2018 19:46:45 -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=K9WSdI4xIWm95WefIAgmlM2Cw4JjRPctJYgLLWJhf3w=; b=D+huqxdj0oLB5H6zpdMf3v6ziDrrSw7vKzugFiDWga6u43eI5eNN/AeuWIFSjMThV9 o+kwP6EcS1+2s4zSPclms+ESo7BcUX+xwM7XTXCiTMUhlXvBUqGdQphSmbym5oWRD8Vx ufgvcSMipW2mSpNiGcoJ9rSO8nQ2Z9NXG44kZ60XZmViRjD5s3rrHr2JvPYGHB0PYvrr FdZCUz/9fOc+BUUX/stpxBBG0qb0SohURfo3prJ7eDmcIxBVXy0g2U4k8HFyAxsbYN7x TAKYgQoLGJG4qUZG4igX5NrV8+v/Cpk31DoUhNJIeSdhMsqONJLWCMpQmWJ3JiGcBkW6 bjzg== 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=K9WSdI4xIWm95WefIAgmlM2Cw4JjRPctJYgLLWJhf3w=; b=BvIbaei9R3cDyNse8exOo5jC14osv6aD0KS/fZSkBCyvS1tH6O4nzIXRj4HFLFDgpD YY+9zzooTGPg50q9t5227Uf8cYTPfaYtgLcui0T2hznGfEc6v1LeFvDr2FGwiNjJUVh1 00OHE4FFiDNCPDaLv4JaZp4Wd91qQdc9gMm6Z7dIOza2qPIq6itMqqp7ks2Yz5Tqw8Bw ALLrTAQF5fu2HGdWSjFFK83G8xPZYUR9uxeJtxtpvrWNEXJkQqAWAUOGMEo9ZYgUz/Ac CpjtG9y3m02b1tWH+OIsWAFaQkuReKkd1MUdEHeN9j5Uc8XDc+ea7JaESj34oOwTeII/ mgIw== X-Gm-Message-State: APzg51D/P2HTLWDx8rcpqj6uo+VQo/3kuBal4xwZw7V6s+DBsoSHZyhz CQadeqfG5a+9HWt9yx8vinE= X-Received: by 2002:a63:88c8:: with SMTP id l191-v6mr29118195pgd.340.1536029205367; Mon, 03 Sep 2018 19:46:45 -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.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:46:44 -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 23/25] tty: vcc: Change return type to void Date: Tue, 4 Sep 2018 11:44:49 +0900 Message-Id: <1536029091-4426-24-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/tty/vcc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/tty/vcc.c b/drivers/tty/vcc.c index 58b454c..ce32631 100644 --- a/drivers/tty/vcc.c +++ b/drivers/tty/vcc.c @@ -987,7 +987,6 @@ static int vcc_install(struct tty_driver *driver, struct tty_struct *tty) { struct vcc_port *port_vcc; struct tty_port *port_tty; - int ret; if (unlikely(!tty)) { pr_err("VCC: install: Invalid TTY handle\n"); @@ -997,9 +996,7 @@ static int vcc_install(struct tty_driver *driver, struct tty_struct *tty) if (tty->index >= VCC_MAX_PORTS) return -EINVAL; - ret = tty_standard_install(driver, tty); - if (ret) - return ret; + tty_standard_install(driver, tty); port_tty = kzalloc(sizeof(struct tty_port), GFP_KERNEL); if (!port_tty) -- 2.7.4