Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2114560imm; Mon, 3 Sep 2018 19:47:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaBqHy+zBUiJvwdnY0/EnGIiOJGUb6g77Ux3Hd9MvcSTyJ6llPzGK4dgxIo9oRTIrs5+e17 X-Received: by 2002:a63:a619:: with SMTP id t25-v6mr28750347pge.288.1536029243494; Mon, 03 Sep 2018 19:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536029243; cv=none; d=google.com; s=arc-20160816; b=ejUEvoX9mTtOeJJKvutYUPVDmeOmQ4AcgquySKQPz/cxISE/OsP4A885Yc+QKQpzCY Z2mVRD+DSFlICAwD/ShGpGVFvniQ39WNEe/t4X0tXgvmNp4P19PBJALv6KKcYwZvTk9L 4/dTxmqzKGf7KpUQg5geUAfq2DOlcZcraagtkfOu34fEEiGA3ivVkfqy6hOz0oyRtb2V oY4xlFUz7cin2CDMDMeEA9cUIury74dy38nvBxa78ui6eSBHv8LO9V49yvLdpwZ2JdDO qv/y4yjgruKzMKiuK+OdPv7/fybUL5AgphB0s9d5IbGB7RqXCpvt95UROx0EjCfuNL/y /YnQ== 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=dyMlBOGeR+D0F4OT1Om3Yr3zP9Ae/55Ycb8svx7U5Mg=; b=oxg5lFyoGOVyOuntbMt9m/SUtzV3pdy7zzqGlxxxnRRIivsrWq+BjEAGVM56pGNUdM Gjm/KtjGOtsnoIw5b7SpzO/ly4PhLV9kf2y33IEXeXl1TElwvI9WKQfP+o+eHURYtIGO zJgVfw1+X9xJJt3E9d2uGqd8XLsneWENRqGQ6fW1RPC00kTUd/U+l/LxX6CETz77385x Vih5POAZUWZAEqiSE3CxBDWzDti/r0GknM2rTLR6OYKIrZhwwZBZ4qn104cl2dv74hEN BlUuIGw1j0wbYXdknr6nG2wDPC59/6UQOmruh2Vt2Zt/Mv9HVDrPd0CC0r9LFQ/D54b+ aKew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QhfZggvx; 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 f2-v6si14912832pgh.661.2018.09.03.19.47.08; Mon, 03 Sep 2018 19:47:23 -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=QhfZggvx; 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 S1727543AbeIDHIh (ORCPT + 99 others); Tue, 4 Sep 2018 03:08:37 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:44034 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727499AbeIDHIg (ORCPT ); Tue, 4 Sep 2018 03:08:36 -0400 Received: by mail-pg1-f196.google.com with SMTP id r1-v6so873202pgp.11; Mon, 03 Sep 2018 19:45:41 -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=dyMlBOGeR+D0F4OT1Om3Yr3zP9Ae/55Ycb8svx7U5Mg=; b=QhfZggvx83W0O89c3yAbEiVMTTX22/0zyGMRqaMmINsTlxO+cP0mDSJvTqhJWWs8Uc PgNeg0xfs8gRwIOvLy7yuiFv93VFaQhjvfqZjWv1dwM1zErUvPvlFN3Bbs1g2hjjXJAQ rDynjHDzeg32MCnqCx+yXuGdPnu5bQSQ+RfVAGyS+1q8KhF+gHg6lEQcJfUgW07HMeNI jReihwOr5iC432Htt06o1rVB4BgD6Kj0BPRlbZig+YBxuAjnWo3gwcF8J/J7nkNkamr+ yPAia5tAa2lSHd6yLaYHwOYf9Lmr537UREYwR+wVU5WdfFdrEnN9Jpi7hJOAWOdlwJFQ XKQQ== 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=dyMlBOGeR+D0F4OT1Om3Yr3zP9Ae/55Ycb8svx7U5Mg=; b=ijACANGwfnyoiUy5ldReh9kV1CuMWPl/HkIcNrTDvn2y6yqZD3UP0SgcKHDoXvRoCb bOQ3YonLtwbQSFTNSvBjypyNYxcedjPq4Lz3axyrWtcgkNJeGtshGi6C7L23rhmO79Qo BA2nQHwi8h3x/5SJOOJoZBa9gx7DYJDpuUWdmMz7flrdwvYqaN2vP6DhASUDxmEB0oqF sZ/6MVxmmBqG6sApEXe9ue3qJegM1BeJNUDeQ1S3ESrYiFR/e5Ww/B9E9+3FbmfWOaYb 1ivNkrQjU5J99KkYgsDZNAxm5uSRqlAJqcwpqYQmcypsF+D6+v2bGbEEil4XzQ9OmYKI Ci9w== X-Gm-Message-State: APzg51AqbJwrZoZazbrgQSRuhJ0ZRlTCOX7lXbOnkKsrrzZ22VgQIflM 5Yi6Epm5IqxveUnXd6AO7sk= X-Received: by 2002:a62:3545:: with SMTP id c66-v6mr32459487pfa.63.1536029141033; Mon, 03 Sep 2018 19:45:41 -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.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:45:40 -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 09/25] tty: serial: kgdb_nmi: Change return type to void Date: Tue, 4 Sep 2018 11:44:35 +0900 Message-Id: <1536029091-4426-10-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/serial/kgdb_nmi.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/tty/serial/kgdb_nmi.c b/drivers/tty/serial/kgdb_nmi.c index 4029272..ed8f806 100644 --- a/drivers/tty/serial/kgdb_nmi.c +++ b/drivers/tty/serial/kgdb_nmi.c @@ -234,7 +234,6 @@ static const struct tty_port_operations kgdb_nmi_tty_port_ops = { static int kgdb_nmi_tty_install(struct tty_driver *drv, struct tty_struct *tty) { struct kgdb_nmi_tty_priv *priv; - int ret; priv = kzalloc(sizeof(*priv), GFP_KERNEL); if (!priv) @@ -245,17 +244,9 @@ static int kgdb_nmi_tty_install(struct tty_driver *drv, struct tty_struct *tty) tty_port_init(&priv->port); priv->port.ops = &kgdb_nmi_tty_port_ops; tty->driver_data = priv; + tty_port_install(&priv->port, drv, tty); - ret = tty_port_install(&priv->port, drv, tty); - if (ret) { - pr_err("%s: can't install tty port: %d\n", __func__, ret); - goto err; - } return 0; -err: - tty_port_destroy(&priv->port); - kfree(priv); - return ret; } static void kgdb_nmi_tty_cleanup(struct tty_struct *tty) -- 2.7.4