From patchwork Tue Sep 4 02:44:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaejoong Kim X-Patchwork-Id: 10586485 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CEA2C13BB for ; Tue, 4 Sep 2018 02:46:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BDF8628CD0 for ; Tue, 4 Sep 2018 02:46:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B213828D09; Tue, 4 Sep 2018 02:46:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F74128CD0 for ; Tue, 4 Sep 2018 02:46:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727775AbeIDHJE (ORCPT ); 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-Google-Smtp-Source: ANB0VdbsLJ9z5I32SoZw2TFN21sIPiArDJxjlR6vvLE40oQnc0l5LaGiT8TkNtPPo/MJ5vP+6ePh4g== 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-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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;