Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2114608imm; Mon, 3 Sep 2018 19:47:29 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb8XnOs+X0nxRhX74L7n4ZWfYKKA2Il4tWGrXENw6CZenWh9GH3HjsZoWXptLb1qLf+06/r X-Received: by 2002:aa7:800f:: with SMTP id j15-v6mr32690414pfi.174.1536029249806; 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=Xjs5noUZbsqysvpU5CAvzRXThnyaVWIlq6KMbMaSe8YxoiggkZRhyLb7WudMe8I/wE PXvD+nyNWfDiuKOvcsn90eXi55bEWHhb0YWeVw72oI6DpilPUIWkGEY+THEtKqSA9enr TrZQ74wyAZd23PnfFOplol3tro0fhLRVXLYcea9QWXItx6GBgurvGeV0u9Zf5o8apEBL VH3BS1/Zcmv+yqFVzPie8S+zuo+3GnqjWx5wOT2T2WQ9zmQUQK6f9WmAJqjFqO9ZU7Dc njjn6NCJ3zaAm2ul4YpqgJhuNlozAh+/+2H44Jd56L2FLGiLtiiNccOtmHxYlKGn/Gva Hr9g== 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=d4uMapg7a40FZXgMObYbX05m8ShQ3XMWRXAdF2pRRos=; b=t2X8Rj5cNxiubk20yjsGE5wkA0G7BPMLn2zHyZrjwJr8UFOQv9MWsEH2C2hWP3Hg/n G1un85jOp1+8MMPEBcdq360MUr43HVBa0pouU0KgfOvVnRg5kAms9tPJAgn+GzZuUUj5 foFonMTbXm6qOaX45Nc68yhcgBfmzMR6LUIndiJx/iJMjRdEvtgTgoyvvNGheB42JBOG 3vCkziOxA/t4GK+qxjRCZCKvXrKdcl9gZtPgeQxKt+uijEzWAI2AC1HYfXO6/Xapqut6 6OrUQwLFJA64LCvVKAYRb5SKsvVprkDg/8UabqFcvFyK/ulQqobM5Tps4xr1R/SdVIOa mVTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="mlTOXR/F"; 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 t9-v6si19288294pgr.244.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="mlTOXR/F"; 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 S1727443AbeIDHI2 (ORCPT + 99 others); Tue, 4 Sep 2018 03:08:28 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:33214 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725874AbeIDHI0 (ORCPT ); Tue, 4 Sep 2018 03:08:26 -0400 Received: by mail-pf1-f194.google.com with SMTP id d4-v6so923965pfn.0; Mon, 03 Sep 2018 19:45:32 -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=d4uMapg7a40FZXgMObYbX05m8ShQ3XMWRXAdF2pRRos=; b=mlTOXR/F7P7ZYpJ8D5PgWw4Ka1zwBvryxWCinCn6sxgLAIkfesdqWDo+cYzqycpsBi a+X11KpVCq5BahL9+w9dhLIOXr9gKGs17WwbcCdjDxhEYR2S0yCpAq6jSFnENmvrxNEw l5BVnllMMsS0KQpS2OXNmJXrzgYGjclZqEZq4gaA/z3HraWoU2hpFsVSqoFBo4wJ0PqN 3KHsZ8sOgXjSAoaL2rEe1iVlIaP5J8QdbJBQLMTyebGyb4eLeyIRTaVMLwCVk8XxKERo bahqBiiYOODVAWzNKCqfnKD6OAc6hB38q6qVLBFedb6hBv4+u0Hl2rGYaP2Gvd7jWqBm UrZw== 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=d4uMapg7a40FZXgMObYbX05m8ShQ3XMWRXAdF2pRRos=; b=ucAh4zO8s1ctDto9roL/GlkEeSl9gy/9bXB3dkfkmhIKQS+CXgv4hJO8PXGlabNapf 4xze5E7BA1jPxtXoc/UelAvpX+ohuvrPVhlj0pblikRTdhgvPp1L2pKp4uB1L4Xmpdg1 FVHmYpUgJuH4S3cV+VbdYJMO4ael503lgpoSfYTwcV1ZRryDzqH+qcWxIQ9YyaxjqUvz v8piPdAg56rLIj+pFsLprbDo4oBTrOooMb+cYtvNJXBzC02mwipv3A/SOSxNSt2CijjD J1spFPqfHYbmBZL7qhaIfK5jdwoh3P9AzcwGINTRVJM5ExElMVVPJW/J/+DctcK8RA8j NMXw== X-Gm-Message-State: APzg51DVqapjCrRTvsAJ5ejREOSS2eIiUS857bocnWZozkwIidnIxHVY CvEU6diZ+AEE9AeYOYhKx7I= X-Received: by 2002:a63:f26:: with SMTP id e38-v6mr28423403pgl.354.1536029131838; Mon, 03 Sep 2018 19:45:31 -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.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:45:31 -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 07/25] tty: mips_ejtag_fdc: Change return type to void Date: Tue, 4 Sep 2018 11:44:33 +0900 Message-Id: <1536029091-4426-8-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/mips_ejtag_fdc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/tty/mips_ejtag_fdc.c b/drivers/tty/mips_ejtag_fdc.c index 4c1cd49..33e06b4 100644 --- a/drivers/tty/mips_ejtag_fdc.c +++ b/drivers/tty/mips_ejtag_fdc.c @@ -763,7 +763,9 @@ static int mips_ejtag_fdc_tty_install(struct tty_driver *driver, struct mips_ejtag_fdc_tty *priv = driver->driver_state; tty->driver_data = &priv->ports[tty->index]; - return tty_port_install(&priv->ports[tty->index].port, driver, tty); + tty_port_install(&priv->ports[tty->index].port, driver, tty); + + return 0; } static int mips_ejtag_fdc_tty_open(struct tty_struct *tty, struct file *filp) -- 2.7.4