Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2114787imm; Mon, 3 Sep 2018 19:47:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdavHJTbWGFhbErSiym4RJxA6DqavKJbjct7YHB/t7ktI+hKC7viq5gm90vcthbGVzLuhp4v X-Received: by 2002:a62:2459:: with SMTP id r86-v6mr32668439pfj.31.1536029276218; Mon, 03 Sep 2018 19:47:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536029276; cv=none; d=google.com; s=arc-20160816; b=H8uuBAvSFBYrKYWNlr7Tc710m7Z7U4aNDjiYkdX4lWkGrVGF2p3pFgJJMteHS9XVxc Fq4RRky2vO6XcxRfj46l/EOtpomw1HJWPXROxRFXQ1Xi1hUub5s0XGA9GKMBwNGeN1MC W0BzOjaOOvRwcHY8/Oj4AmAvEVLHxjnXGJCRiRzMq11NMejvJFucK8CR0NGiypTw+tPE 2gf/N4Kva589jeoxc1/vEFmkNlZUY/Fti5aj2qoV9jNdDLLMtd+CqceBNAV/R2VzqaL+ eUJy8yuk/IDPRTTw0CCE012SpoZRfr2JUT5mupFxNNbJiiqmNFmg1CqGkIb20eB+NH8B cpVQ== 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=cFthBZpqEg0o3AkyH/cDmTIfBXszV9IUyle8uuggvS8=; b=M8xnh9tprCyKwXE6IymogldrRkMYISZjScMesgV7vPIyyaUmk7y1ODqJoKvsItdLrE gM0SzVzVERLS1Rmt2cjfFWwc+dSNL8ussQBfDs0RPziT8a+XyCE+RUQRCmpre+6Yf8P2 FutWBFLt7PRKNpW1VwDCi3Fd7MvUZ/Zu40QdLHeS38Dv4HgljgDc3df5IKQPqR7r4NWq Ee/4kaoRRQmLBCt/ZgoMC+p+cPRAjhMdZOFJqG3NZYc8ycvThsEMkuhXJgBE/XVHsfGs WMEup30VNF3GhcJ1WUaHuM/Ok04imlS1oRbgqlLyaa0j4to+TfgFsDPcjzuduXyvlS8L /2wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aNi0e2LW; 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 u10-v6si18989331plu.506.2018.09.03.19.47.41; Mon, 03 Sep 2018 19:47:56 -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=aNi0e2LW; 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 S1727815AbeIDHJI (ORCPT + 99 others); Tue, 4 Sep 2018 03:09:08 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:44886 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726047AbeIDHJH (ORCPT ); Tue, 4 Sep 2018 03:09:07 -0400 Received: by mail-pl1-f196.google.com with SMTP id ba4-v6so877437plb.11; Mon, 03 Sep 2018 19:46:13 -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=cFthBZpqEg0o3AkyH/cDmTIfBXszV9IUyle8uuggvS8=; b=aNi0e2LWGTCNFKhvBzvp9RSWI4K8sFoCffRPjC6GBPC60fswx+xdzp5nYULURssfvj AcmU73szVeL9Yon04e+s1hDKOPu5H/yUiF8WMigIbAUSITUPXobWi2u9ie2USkPGiiYc VUzPOBfIqQ5XQNwR0AhTNcVqTJZFUh6UhEHjYY3PiywCRjwuBQiSdtgm9JQu3C0ufaNX G1PG9H8xMEiBCz8nXOTVrK9HJs+g9QiNC9Zp97wshBBijnkkdgio1vJyJ3IF6Koh4Bjg V366MG8eIOzCyof4CbYJjsswUYUnO8dewNQk1eqNtvCNS6eZUsOw0G8HxTX+cdLTAnGp 3jsA== 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=cFthBZpqEg0o3AkyH/cDmTIfBXszV9IUyle8uuggvS8=; b=KiI3yzCN6/gdzKbL2YndtZxQTs4n8il+T8CPQAseaD9XpJXhhaeMyX0udJEKPEK4Dn 8IuUMO3zHE9QMQUAeqWUiEHJBiT8yHt1BaZ0YHWDygng1paezhCtI0ob60fFYHLCdoTr 5sosI0OJYm8ebQ+mYCC1nAdS/gokwEHxfivsdpt9RiGKtGYhFSb1agUZMhs5Nm2XmalR XaQmAzDgPpStfUxkV6PCRdP0Mi2W/r34Ab7y+Ap/V7atXKBNVQmp1XznWzeDttaF1bEH mRv9HlCwpA02MB2IxaqsaldYTIXMoNiMiDKwGc3H1StMBtv5oXcVniCuF6QQJAYCoBLd E8Eg== X-Gm-Message-State: APzg51CJ4A+WmNTIanMIb4+osixNhO3IgZdS3vNLcE0RNN80Ygbkwpuy 7s3lQqx3q4wJeJXE1tm4sRM= X-Received: by 2002:a17:902:8a8e:: with SMTP id p14-v6mr31457955plo.213.1536029172827; Mon, 03 Sep 2018 19:46:12 -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.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:46:12 -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 16/25] isdn: capi: Change return type to void Date: Tue, 4 Sep 2018 11:44:42 +0900 Message-Id: <1536029091-4426-17-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/isdn/capi/capi.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c index ef5560b..08daf3a 100644 --- a/drivers/isdn/capi/capi.c +++ b/drivers/isdn/capi/capi.c @@ -999,13 +999,11 @@ static int capinc_tty_install(struct tty_driver *driver, struct tty_struct *tty) { struct capiminor *mp = capiminor_get(tty->index); - int ret = tty_standard_install(driver, tty); - if (ret == 0) - tty->driver_data = mp; - else - capiminor_put(mp); - return ret; + tty_standard_install(driver, tty); + tty->driver_data = mp; + + return 0; } static void capinc_tty_cleanup(struct tty_struct *tty) -- 2.7.4