Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2115540imm; Mon, 3 Sep 2018 19:49:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbiF036MtxMuK/ayvjhJunUxDHfkw0Ojt7Fwqg7qDw/ugULVsX7U4H+MxI69FbIBDsn4/J7 X-Received: by 2002:a62:1391:: with SMTP id 17-v6mr32348665pft.34.1536029386548; Mon, 03 Sep 2018 19:49:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536029386; cv=none; d=google.com; s=arc-20160816; b=yuMblQP3KciwP8T0bNpo7jnfZA7LNO1ibdKNuopguawR6ZPR2Sn4M3ehthBu8Jk/OC S35iEy0X0CaEf67PpOdX6RgAcH9vmqcIUbMeDFkwg9dLuA4kaadWvhYxFkSp3i2W49XL db3Vf5HDc9XNwADqZOafzFqnE+PNuqt8N6b8zTVm2bBKREA4RMaabuY4M7hcUFfBOogW IjphzlmmeVHn+alkkTVxAOSFZ4D9vla+idvXWQfPhMhpAyCAZ2Mf8H5QO10hf8JUyMqy /sS8Pz216vnr7685pdzHuRMOAWBEduptsvZilnZGamB3Q367rkbVarx35+qYg0ZBcMOP dMAg== 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=u9q+PugGhdQhGarX8q9kMwfv+0Mo7mXRGcKR8a2BaTY=; b=Vz7ED4WfV42QsuRd64ZzLmhi55eHQtcZaqZ6KT1YIW8PN7ZTOYPra8NSkVgPL5ME/8 K1/YYv+kfGS+tdnc3tONsodj1jgBfkXI8ZArxIcVcA4ig3SAfzu4AzjVj8Eg7+xb6hT2 c+KYCkXEycdgcAJi+4M3AGygYZOCvR8k5+fQPvFWhW1mFp/OxiTu0AnnXOYk43jDAJw8 wjhaaHN56sHVZLLQxzHzdUfvBPhlCtAfSSz9lHkhshIM7VJavcH2MWcYn9wIN/w3NfOQ D9BaSEG5enjgaeoalpR3RdIEDgxakSfGpYYVQqLclkOjIAH/UkDNA7pLs5SyKLis0diN az1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PXyyYhk3; 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 f16-v6si20747789pff.13.2018.09.03.19.49.31; Mon, 03 Sep 2018 19:49:46 -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=PXyyYhk3; 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 S1727763AbeIDHJE (ORCPT + 99 others); Tue, 4 Sep 2018 03:09:04 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:33253 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726295AbeIDHJD (ORCPT ); Tue, 4 Sep 2018 03:09:03 -0400 Received: by mail-pf1-f196.google.com with SMTP id d4-v6so924620pfn.0; Mon, 03 Sep 2018 19:46:08 -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=u9q+PugGhdQhGarX8q9kMwfv+0Mo7mXRGcKR8a2BaTY=; b=PXyyYhk33i805zIS2aA59nRTGDtwF+CDarkOC9F4jkZYmUKdYi3GgXqdykMhJORpnx 1PuOviGt94zEDjZwLHox2pgql6mjOuAamxup/lk1vHjIh6KQlPtx9gJTcrzNTfDMhaV3 oaJg4n05S4mifCF+h8YtbxMDK3NsEiPNSRxRcQJXsY4diejj2ZI2T99BJZOPLcpcfxnO Wals1yRiAB2so+4HbbhrTpEtpNfcLYZ/cfkQw1CUZrq5xlZGYq6p+fOp/Chx0vOYCbCg D709/UnvKJvNeIw5bWlOGlGuiHFvpLRhg024l6wHctO6rXG6ZqtjE1JVPIkC92gj1/Ea Rq6Q== 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=u9q+PugGhdQhGarX8q9kMwfv+0Mo7mXRGcKR8a2BaTY=; b=EglBV+7fO3mJWeDiEpq7uGt1hiHOPaSMkpgmB7YbYaqzRt/3PtFGKWouf0DVi7BGXe y19WgVX9jCuihN/s+R8eLyEcKfYhqZVXnXXFY7iTf+NJOfjFtwsVfOdNZ3dyFxPX8MEg q6ui2RUsc/i0y6Nmo7pW+O1MhEYLjJj8RKyleRIqt/ozZUl5SYnQ6CaHOqMdylyX52NJ ce6LJMXJYLqu7C+mevSefnOAtwANS+vfE/piHY9OYESi/ggITg2wjS65cVSsLdimsWvm bXqnhkuyWaZX08KFkBsJkrVzofoQTJ4Zs73VQMp29ZpMpAwzWgSx3ZP3zzDnOnTVO1Zd cS+w== X-Gm-Message-State: APzg51CgedXcvndqsZTnmLJB4ASi9Jr5b+svJqCncKQRw67N1JauFemC ahSQe48DOTaXlpi+mc7mq00= X-Received: by 2002:aa7:818f:: with SMTP id g15-v6mr32498472pfi.71.1536029168566; Mon, 03 Sep 2018 19:46:08 -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.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:46:08 -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 15/25] um: Change return type to void Date: Tue, 4 Sep 2018 11:44:41 +0900 Message-Id: <1536029091-4426-16-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 --- arch/um/drivers/line.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/um/drivers/line.c b/arch/um/drivers/line.c index 8d80b27..47058cf 100644 --- a/arch/um/drivers/line.c +++ b/arch/um/drivers/line.c @@ -338,12 +338,7 @@ int line_open(struct tty_struct *tty, struct file *filp) int line_install(struct tty_driver *driver, struct tty_struct *tty, struct line *line) { - int ret; - - ret = tty_standard_install(driver, tty); - if (ret) - return ret; - + tty_standard_install(driver, tty); tty->driver_data = line; return 0; -- 2.7.4