Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2114784imm; Mon, 3 Sep 2018 19:47:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdabtRqB4/bA0G7CVQEOzvQ1Q2372TP/0F7c+jLUeM3f1F96LBtPQZgszEilhtVfMrCdVNIP X-Received: by 2002:a63:65c2:: with SMTP id z185-v6mr29165181pgb.276.1536029275500; Mon, 03 Sep 2018 19:47:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536029275; cv=none; d=google.com; s=arc-20160816; b=CDAhft6ApSQTlrH2jdwCNGsDz33zea1HtGhyOna+CwnX3+0zpF/O/BIy3PSql7Q/Yu Fw77PhAj4LPVAjXbSfbjVHxEVhBT1xFLxJ+nhfOsXaU/SRcSkbyXa6YaJHBZ2TIQj9BH jq0CvOXTeaTxhRgob3ux/oYx8XUvuez1O5V5IPz4LIqyKYLAi+5jDnEFhvSr9UcYf9sh P8HU4gDeAEh7NKC7XLkD685GqBvTxIlhC11tPHL3Bum4yu3YAxF5qPyw3V/+p8700QTk ESp3qOOhe6nxBNmY+sp/5I4qPdc1A2+ZM0NjLCAWdIV1UrrA+LMY4h3vqDykkScWwo/L IWNQ== 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=Rc/M0zTwkM5DtzotXjyB3OA+o8WtWUoAU9ZFvniXG20=; b=vHpfSZsMXgkZwCXkPcxqMjYgSfW3mdTZ30xTj1akhYaLiTQwogeWtmGwGoQ/jr9H+r E9M8IZ2UWio/YYruMXIkuUcmpTbwK1uVafmVlBdXGT1OfJrjBJoTW0amwCRF/ClcHmWs BEC/QJepFiA6ChCHu2jXsnIU+aDJZ2R6gPzmZT7t1U8OE6WQ+6orPqwotEpWusu4hoV/ eXg7LY69nwZMNbZZ1y4vnkI0fuxl6+4vOZRVgmQH25vRfhYAaLEHcuE5jMyXAwuvI241 YsurAmVF+GjsQcAoLeXFx8T2lsUw7+zaXyhZzPLthhlkuIAVuEjTNfvyt19Xwtr1Aw6u 7hjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KPzUgfkz; 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 m192-v6si19879143pga.410.2018.09.03.19.47.40; Mon, 03 Sep 2018 19:47:55 -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=KPzUgfkz; 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 S1727610AbeIDHIq (ORCPT + 99 others); Tue, 4 Sep 2018 03:08:46 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:33016 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbeIDHIo (ORCPT ); Tue, 4 Sep 2018 03:08:44 -0400 Received: by mail-pg1-f193.google.com with SMTP id s7-v6so904094pgc.0; Mon, 03 Sep 2018 19:45:50 -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=Rc/M0zTwkM5DtzotXjyB3OA+o8WtWUoAU9ZFvniXG20=; b=KPzUgfkzoUz0PqjZeY1nZEB9kP+7qnTDhqdQ7uP1OYJIguHxB1gC4fz8odMm8vs7fq gyCDeZUYvFDOiLyW4PEfyXHRZMHeG9G4SB0KmWOBMnaz9Bkzwyc/sUw+D+6CeCnWUlkD ZDrmCfFV1MnGRCwMGuFDkXCYPW23nq+/pdXfY/DAa3k7qIxEQkK4Pgyjf1ZnCM3r7/OF OoFM6/cEUnSuJ3hyHurRehpkJkLXZ001Jfe05fh0pTHig+mdgw0ihtuiEUQJrWl9I+7f OgXG/Tf0Iw5l/WD63ZYzSZIDEcmsPxt7VZTbzZ7/R24CbhAxTnZyTvohKrJu870O8J01 SbIQ== 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=Rc/M0zTwkM5DtzotXjyB3OA+o8WtWUoAU9ZFvniXG20=; b=o5kdCOCCpXgwEW4sNV9IdYLNOG9PxVZTmt1BLyWwlWWc1sYeW/LHW9oIKhb33G9vRm GYBZTSA3FJNdqjvof+s2d/F6pzLIP4xEgmy5op8QgZnwFn+W3b8zl+3ifo3RnK5Q2QdU 6NZyfnVGAjslKKHj9Zl0iKgMmW5eqMLRiDrIE5GirTAuM1BqPY+8hFAsfXRMEbYs29jg D8X+z4AkXQaHLFPW4euMtYDdl+oWqFIHhnkxZME3LslSzFUkEgzjNE5TZQjDFOv1H6pg V/fys0NSXmFvhW7cdFG2mq5BloW8MZZ8wNepN1t9LCigjWr+ompmDJh3d5DXCpZZVrgS 5lxw== X-Gm-Message-State: APzg51DGZkL9STd/1lwAKJ8lauL/zFZm5uPVLmpVzJutIQv9Iqn25rn8 +WjxYaJco2bLqtrStXkeUts= X-Received: by 2002:a62:4299:: with SMTP id h25-v6mr27083940pfd.73.1536029149780; Mon, 03 Sep 2018 19:45:49 -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.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:45:49 -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 11/25] tty: synclinkmp: Change return type to void Date: Tue, 4 Sep 2018 11:44:37 +0900 Message-Id: <1536029091-4426-12-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/synclinkmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/tty/synclinkmp.c b/drivers/tty/synclinkmp.c index 1e4d5b9..2d99a5b 100644 --- a/drivers/tty/synclinkmp.c +++ b/drivers/tty/synclinkmp.c @@ -734,8 +734,9 @@ static int install(struct tty_driver *driver, struct tty_struct *tty) } tty->driver_data = info; + tty_port_install(&info->port, driver, tty); - return tty_port_install(&info->port, driver, tty); + return 0; } /* Called when a port is opened. Init and enable port. -- 2.7.4