Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2114468imm; Mon, 3 Sep 2018 19:47:11 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZX5L0KXMGJmeg+vhEd0S82/Wt6B1sb9SDwj5qGymlPCYXH/KyX31eTjNNAW9Nqkaa+mnDf X-Received: by 2002:a17:902:8a90:: with SMTP id p16-v6mr31745769plo.106.1536029231197; Mon, 03 Sep 2018 19:47:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536029231; cv=none; d=google.com; s=arc-20160816; b=ihw9H14HLPc9MeRc8vglcuP+ACXkk3tnkg4TvLM0556jJSBBQKXyW3bNx0blZsDIp6 YAiSKRHDG5QHwRucCEyVUAfivHm5J/Tw9nUZsfq6jK5K7MBc83dZ0kwBnE1SMzeAFIW9 aq+W0MyDasMHrAKvwPFur92lJjqOE09pUW/pZqfyXSB9pxD9cvwztBMqnZo5EKI8iZQn jcrZ0QGnJVMZ/NvipsxG6AwTBcI2oQ17rtDh28r0ZX62CwFKkLciKuOfWNiRVaQXuk+o 8pTjzANUueUjE7CDrXH0Vy5qbT5/RqBXq9iBy4/meUREZX/uB2ej4dHZ0DL54qHYB/9m o8wA== 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=5dM0xQ787rzw6bkqyfUjT3zjhB0YPJAJ51j5bAjS2T8=; b=vhvMPbsN/nCE+pxV3ERsgycUaBXt6HfyiZTAqFRHvidunhV5+6qrzK/HvLWbCigoA8 KemSF2OIY/CQnSMonYM6QvxnGnxAAelCDi4AJVU+umAraTYrcjItZWeetHmyLn2oEzfn ZTy7GBDHynea9iAG0EmhX0L9kLIFkdYm630kGnDafwnG7w+d/3WP9ldZjtNsRpexeqWA wVjspFmeqSYYU4wuszrlBb6nxFB8llW4EzU/IJVWRzBo8ce0bBiewQzP6WwenM77oKyN wc9S0hgPy7KAz7t0j8GJv1aIQVADtl5QvuJ1oSCphUcZkHuDDZ53ihxxRhC/Y7Bkhu1g vAKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LSyhtXkG; 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 z11-v6si5400861pgv.138.2018.09.03.19.46.56; Mon, 03 Sep 2018 19:47:11 -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=LSyhtXkG; 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 S1727493AbeIDHIc (ORCPT + 99 others); Tue, 4 Sep 2018 03:08:32 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:34894 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725874AbeIDHIb (ORCPT ); Tue, 4 Sep 2018 03:08:31 -0400 Received: by mail-pl1-f193.google.com with SMTP id d9-v6so899372plr.2; Mon, 03 Sep 2018 19:45:36 -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=5dM0xQ787rzw6bkqyfUjT3zjhB0YPJAJ51j5bAjS2T8=; b=LSyhtXkGxa0FU0fVjsQpau0if65BJFmvzTCCED/yoMtBCsWTOnczf44bQOG4WVD3fk bT5CCAsnyu0hAMzH85mdtgxH14TdL6PUQ1zver7BZy05sFf+wiPf/8I+q/7zE38P/9Jd IhyNrZV6oM9k8dcP2bJRKaTsooiRxqt9q7/8AgVMWoxqLoV/Hz8djpSqpBqpqZJmvQxQ 3FrLn2wBuQCXyxmN+IqBghprw+qPZeipg8ugBJVDSlOIm3/nRW0IkuAg8ycUsP8MrpIX TqWth4eQahCzAXARFo70j1Tvdj5cgsBSWRmX6jbV1gMaL44/FiWoFnrJSyklXMgO4wkq QXBA== 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=5dM0xQ787rzw6bkqyfUjT3zjhB0YPJAJ51j5bAjS2T8=; b=DRcEj6E8NvijUoiOzqvfYJ+TDW5WDAdmvlN+bdFeAUmIPxWY2KJBNGBOpSz3g118d+ Q0ug850Y4TQ2aFJtyTuvR9MOEFRWlhflfWmy6Aoo1jdtC+I8kdDJSIC+v8gTEImU7pW8 Qj+qYGPUz6cnpWNm6fYV9sOBlsUVnpLN5CMnCoMdF4PomNvh8ZB2DE3vLuo508bfwu9o AL3tB66/lFvilZdZLQfue9MJM6LHbCQgAoqwfMP2/IqVCiLHz528AD04J1Vg9GD2Neym 3GFVJEa02a1R16j7jIO3lCswcoLiSf+dJh0otrHsn+05wUa/rDqD+XgLKiK+1JhxLw9Y TtpQ== X-Gm-Message-State: APzg51BMv+XuA1NfZJ7JvcSqLWyuQMgRA24+iXeBy+KBs8de11AJ0msN tI12ppgbYJcbvzPgCT9FSUM= X-Received: by 2002:a17:902:b68d:: with SMTP id c13-v6mr26735699pls.139.1536029136410; Mon, 03 Sep 2018 19:45:36 -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.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:45:35 -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 08/25] tty: n_gsm: Change return type to void Date: Tue, 4 Sep 2018 11:44:34 +0900 Message-Id: <1536029091-4426-9-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/n_gsm.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c index 86b7e20..c52fa2d 100644 --- a/drivers/tty/n_gsm.c +++ b/drivers/tty/n_gsm.c @@ -2917,7 +2917,6 @@ static int gsmtty_install(struct tty_driver *driver, struct tty_struct *tty) unsigned int line = tty->index; unsigned int mux = line >> 6; bool alloc = false; - int ret; line = line & 0x3F; @@ -2949,14 +2948,8 @@ static int gsmtty_install(struct tty_driver *driver, struct tty_struct *tty) mutex_unlock(&gsm->mutex); return -ENOMEM; } - ret = tty_port_install(&dlci->port, driver, tty); - if (ret) { - if (alloc) - dlci_put(dlci); - mutex_unlock(&gsm->mutex); - return ret; - } + tty_port_install(&dlci->port, driver, tty); dlci_get(dlci); dlci_get(gsm->dlci[0]); mux_get(gsm); -- 2.7.4