Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2115832imm; Mon, 3 Sep 2018 19:50:30 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYcikWIUH2tvb5ifczpK+eXYQPZrWRuQyPYBRyYI/+wQ6FDC5sxMnnyGVtJpHCXyctOzE02 X-Received: by 2002:a62:41d6:: with SMTP id g83-v6mr32723203pfd.219.1536029430460; Mon, 03 Sep 2018 19:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536029430; cv=none; d=google.com; s=arc-20160816; b=K/2oPuYP6QO1NQnOiBTepR4FvBDBQkBSkHM7i6F28N293dJfNi+DOsI+jIGl5rgM2S 8S9ihPvY/JFImzE5iLeSWE+vmMQNQuslVgWgzmsga8XJOtSAgGJQwH8ZNSemKtIarNPh 2gh0p2uHdWFumehPoXH7f+/HiCJPS5q8Uu6T0UuVpVa8NqFtS7Ng1iBUmd26alCcpis6 v8vyq13r/RJtjg4NBVP/YnZcTq7z1CeOK5tvIwh/l6cpnPpYbvRAQqX9N3k44iIE+27X akEYcd7OowugHWbwrAi+0fDGVVrFrnJRqYIWcGVKMsTfYFzx5PfqKqcw6qIIDdDpQL+X ZkBg== 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=xyGQJoxJuf80yEKrzQZlMJDHZF2IdzTQKqa/0pjxKR0=; b=cw6xZXCcfQl/5JA16JgGPitR+YR2il+MAJGgfXdEN8CewvGEKkYyBY+0JL3nintc0H 06MT+MqQe+IJtwQPK+2BBvhMEwcqDDe+YWvF9o6I7bE3I0uKzzxSH6byC9j5Quvv1GAY Z4vgt0no0QT3FeecjUmaYRlM+E/y6sAofS81U9zxqWvOtmhhZ5C7chReM3T6Nq6c5Wlz +4ALD8QIv3LPcX5On5II7plXkehQ9PnAjMkKUFoydlFH8L9suXzLgThmlmQKUFWj0Nwo Rlpr4CvAe8rT+XmhkX7n0gTr5anvEseZaIDit8pfFPuWRP0kYTcQVtazCGgCyIC80L2g Z6Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RZRQSv09; 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 20-v6si20202098pfr.242.2018.09.03.19.50.15; Mon, 03 Sep 2018 19:50:30 -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=RZRQSv09; 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 S1727876AbeIDHJS (ORCPT + 99 others); Tue, 4 Sep 2018 03:09:18 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:42581 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726047AbeIDHJR (ORCPT ); Tue, 4 Sep 2018 03:09:17 -0400 Received: by mail-pl1-f193.google.com with SMTP id g23-v6so879184plq.9; Mon, 03 Sep 2018 19:46:22 -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=xyGQJoxJuf80yEKrzQZlMJDHZF2IdzTQKqa/0pjxKR0=; b=RZRQSv09uLpehuYeYRJL6n4Q+9TLDbL6dSMtuVoLpRQUlGaoKC3kWqooJlxuODUJWT EfjyJ3kJ60G5cT8s9NZDTPSizeufFEfjWlruXgokm32X0iCT3eu9lIo5jqhhH5+ttbeO GR3j2lN9B0dHCi0a56lQOyIemsWoT6FS3ziU66qQQnWt5CxPVv+CRiwV8/5xjBAfCN+8 XKr1tmgwZrB3BOblVlZXxLpY9jNPvVjHjOMnJxXeoFtqkuPtIlfPB6dJ0/Ha+jz2RNed 0qisgumt35KtA3dl7ef1Qhb7b3sUxCto3o2Q/KnL9k+Z5JRMzfkUcFPyurjUKkr1etDU 5blw== 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=xyGQJoxJuf80yEKrzQZlMJDHZF2IdzTQKqa/0pjxKR0=; b=nLpkCvJpVCkg65xUvEdavQSEqm6tlfO4FYELnmHrM5LAIHVG44Mymk48sqiy0qJ9Pf UqqbrV2RJhD8jC1dC+NTQQ1Zrr7GC0hkeRxTZQepm4Ss0+5aQTdBBd00HFfupj7lNudS m5yt4uJYMaOvzhUHqlzruaiCzjGt3gT3MDMRXZS+SRYkatGaW+5s5qSAK9hapF4wUJp1 qiwGbNIri4NmP3N5/jbL4Z0oPVfRWfAYL+2oTsIJR/o5yiobB06JLAuV9xnrtRdHixov /SJcqEtCIw09B/ajTfAT8uAg6lOFkvgL6SoRQfmqHOE3YhaK7JGIQEzrGJtPJI8Og7TL pApg== X-Gm-Message-State: APzg51A6Z3KX7PEOP3Eo3XCXUyheFN7jFUagVGjgbcZRHqELfloyznbp QO8uqt9U4GaFahHKCbgibEM= X-Received: by 2002:a17:902:7d83:: with SMTP id a3-v6mr31483472plm.0.1536029182110; Mon, 03 Sep 2018 19:46:22 -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.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:46:21 -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 18/25] mmc: core: sdio_uart: Change return type to void Date: Tue, 4 Sep 2018 11:44:44 +0900 Message-Id: <1536029091-4426-19-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/mmc/core/sdio_uart.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/core/sdio_uart.c b/drivers/mmc/core/sdio_uart.c index 25e1130..b727186 100644 --- a/drivers/mmc/core/sdio_uart.c +++ b/drivers/mmc/core/sdio_uart.c @@ -731,14 +731,11 @@ static int sdio_uart_install(struct tty_driver *driver, struct tty_struct *tty) { int idx = tty->index; struct sdio_uart_port *port = sdio_uart_port_get(idx); - int ret = tty_standard_install(driver, tty); - if (ret == 0) - /* This is the ref sdio_uart_port get provided */ - tty->driver_data = port; - else - sdio_uart_port_put(port); - return ret; + tty_standard_install(driver, tty); + tty->driver_data = port; + + return 0; } /** -- 2.7.4