Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2114607imm; Mon, 3 Sep 2018 19:47:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbWYrj9LgoOXNwYZtftuvlX6EEfLdtJMZI/p2Udk4/4UhE1Pi8hVm+RXmUHTBoTI7qiANwH X-Received: by 2002:a62:5d89:: with SMTP id n9-v6mr32824354pfj.102.1536029249756; Mon, 03 Sep 2018 19:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536029249; cv=none; d=google.com; s=arc-20160816; b=hfip73OhGLhpeQGWR0/Xc4qM06vsl1u9iMH506jym8yhyAHIBWL5dW3SItOONPfgHi 2RWeCsuJO5yYkZ94in20Nozx/Xze8J+6usy8+WoJK+o3j/mn4T5ZmlO454WQawQrah5w NTQA6PfquqTs+LW2xyhzz/g+YDTZExVhL2fxrTkOlpdW77hIPG9khkNE5gsHnQFwJNGm kVjOpuGaMqxwXMMn2vsVrbFjc97dXo8J5ZpmQbYoHE4goVctd8zD+QtPuO8VBlBc6F4t 0bwLWdnwvho7l4XX7JNBuQ+XtLSmABzjnuusSuW3cEtQhAtnFjEVM05OFzFjYCM7TM/D azJw== 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=qchqH0U+NKnSgzy5OmR5JDqm4OjRzNr3FPKLhiuVQoE=; b=I+X1YVXLNEoiyD37zIQaY+vIsjIYerlzWhHjXlsg3cRxwAimcJrr4R/1qGhMEc6jYw K/meqnJkdAENApfoQB5st2vV8ANK0S6dSriFK+pN5YScpGn7SjiF8Gy0qx4Gef1xjugH lFxrvlCOxVKjWzjhbD0Ij4QhZMl3ecXelgyIIV2sWPCHK2vZMDIU/hiT7Bx5+R3s/50u RehClJ3Vh5eMKeeqrNg2uAZc39vPLNePMBr0t25AAT/VgljnwICP+9Wq7N7QkyKuwhpy WOpB7IjRLJfQfhe3TJLpzdurHUryL4Ygvd74SjbzewNmH7cVgOIqA/5iizyEIvlSetLX KmGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bnO4l0Fl; 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 s12-v6si19609611pgi.320.2018.09.03.19.47.14; Mon, 03 Sep 2018 19:47:29 -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=bnO4l0Fl; 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 S1727574AbeIDHIk (ORCPT + 99 others); Tue, 4 Sep 2018 03:08:40 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:36056 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727499AbeIDHIk (ORCPT ); Tue, 4 Sep 2018 03:08:40 -0400 Received: by mail-pl1-f196.google.com with SMTP id e11-v6so895820plb.3; Mon, 03 Sep 2018 19:45: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=qchqH0U+NKnSgzy5OmR5JDqm4OjRzNr3FPKLhiuVQoE=; b=bnO4l0FlSd3A2icpo/kTlsTkWn/ZlEY4nhsjN5kMBX2M35z1GeH3Fp8gMMCrc7CRGH s1H7IryVse3PMjNmL1Iag8RPmsg4h3/E3gN+ORMU6kg4aZ1zfhvSmKSUSkx+dCv0IXRS d9pksj15ontYb+Ah92cmixiRXepDQc7ZqXTkeT8Ti1iNM7nYPkyBWHR9HvDrlslI+If4 kqWTy+Zksdap9rZmRhg/Ti0hIBXf+V/cTZhk6dZDQnUbKt7XwDUzyknQIdMgcrnxvoMP 2OrcwxGD9OtsfeQtduZVeYQXCwlFhxm42afiy2TvOriuKLYx3YYzmlBk6rAPS4QGXKkA mx1A== 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=qchqH0U+NKnSgzy5OmR5JDqm4OjRzNr3FPKLhiuVQoE=; b=oM+HYXez5oz8mYt3QEUKKHJFGDWrPD8HdsmXXz3cBr9yTdpCvy175iE/WBhGR9w4JU w5UqRZ9WV3e1Mh8M4qW3DcPvxDJMzZZMNSgqsTEtt5JrH0vcU/aYxce9QgRg/3Wf6xVq gGVtSVOgx7CfL5ZyeAe8N5Zfy30LuITmFyoWXBZEM8mAY0pN9VG5pa3x4xqlYFGzWXe3 WhySd7Ix/j0bLpWD6ktc1XAOHs3RAGcNnr6/llGW6gnCXdT/DeNONAOg0Yb0juBTAV1N TGWVVjCclnv+165phI+LtMW64ZNjm+9ktfX0calWS1siA6QpuocUt6mnQKA9uMz8j015 M89Q== X-Gm-Message-State: APzg51BwwnWyZse4Gb3BDIyBY7qymWjIzsRrHT5mk+QrNx7F767ybn0y 3VGixHpJ4bbcnW4BOZ80xzw= X-Received: by 2002:a17:902:5a02:: with SMTP id q2-v6mr31533319pli.253.1536029145329; Mon, 03 Sep 2018 19:45: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.45.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:45: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 10/25] tty: synclink: Change return type to void Date: Tue, 4 Sep 2018 11:44:36 +0900 Message-Id: <1536029091-4426-11-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/synclink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/tty/synclink.c b/drivers/tty/synclink.c index fbdf4d0..6e7e4d6 100644 --- a/drivers/tty/synclink.c +++ b/drivers/tty/synclink.c @@ -3355,8 +3355,9 @@ static int mgsl_install(struct tty_driver *driver, struct tty_struct *tty) if (mgsl_paranoia_check(info, tty->name, "mgsl_open")) return -ENODEV; tty->driver_data = info; + tty_port_install(&info->port, driver, tty); - return tty_port_install(&info->port, driver, tty); + return 0; } /* mgsl_open() -- 2.7.4