Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2115170imm; Mon, 3 Sep 2018 19:48:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaszFjbrZXq8nbZjnnTvAGIUxcXlfpUD+m06bro61yFIZKATqgam+GZ2hocwnxjhwXsT6Pe X-Received: by 2002:a63:3dc6:: with SMTP id k189-v6mr14530777pga.191.1536029329398; Mon, 03 Sep 2018 19:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536029329; cv=none; d=google.com; s=arc-20160816; b=rRAdvRh+zdCA3znusjlMn6T+TKgLBGZ7DZuIFK0PzCMuL5mey1rvNl3r3xQHfCwJG2 fxCXiaI5oxvq/gWi/kPMgNk29ESmuKN4C/+AzeSQ6lJumoeShRqffljQpq7IW5m01yze ll49eHookPbb2wdWGuo9CL7098nEIAPCHnQbwUo7l8YY/LZdQvJNobAfzFZscrj0UCWG /gySSJE+qY7C0jj5OmVoH36AV4JL/o00PdSawBpjjU4EGpUAXI1WNC7LMIYDmWf8wKex f47XHFjyDgnLCDLEhC+/xm48EWXv8aQ0D2FaFF6WdrJ8DtF2dU0/nKH9wMLnht5oNMa6 ZM7A== 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=RZT0NlqWPDVv3ZY8knEZ75oaH0KEYhTsNL+EUjOlpgk=; b=uypIIvE9UpAS/JixqTdLKJmhUUTzXO1oASswcoxe6eL/XnmeNcvHqrreOSrjqlPXUD G0bKC9Y5iTG0RSpAFNT39gO+TnJEZnIZo9D/1jnfxLoC+hAZFBKe8YoJdICnGLYmr8Ym BhI3r7UTMejmB8eDibiU3i1aqRuSYLoha0GJChsYT8qk70bU8zd5h82+7rAnLYE4y1mV U2z50Pkmyn4cURwvy6qWa8BNouEXKfm69Zn70el3EYf8oAyGDIIOtBH1UAU3PXL5nYFo LfcDExTfw8FUakzVtJ4pMDcZl+xIZc06aciEZKRePXXY0W6yeKOn/FvjVW3pKlAnH+IJ X/NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Bx65hI3S; 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 w26-v6si20611968pgk.372.2018.09.03.19.48.34; Mon, 03 Sep 2018 19:48:49 -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=Bx65hI3S; 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 S1728136AbeIDHJq (ORCPT + 99 others); Tue, 4 Sep 2018 03:09:46 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:44921 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727156AbeIDHJp (ORCPT ); Tue, 4 Sep 2018 03:09:45 -0400 Received: by mail-pl1-f195.google.com with SMTP id ba4-v6so878053plb.11; Mon, 03 Sep 2018 19:46:50 -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=RZT0NlqWPDVv3ZY8knEZ75oaH0KEYhTsNL+EUjOlpgk=; b=Bx65hI3SeSwju/CMQO3BmpKV5KW3A7z+7x59hC7W08nF3mou9O0IAO/i26QCK1SAav qpfO2abtOD1tOU1XvV39t4Q66+miH6hx+lYSF23Ln0nFrCHq6t8OIrZnakB5FyLMpQiH JJbcCQrzro3jr14467jxQwj+fnbPp3AgA6AxS4KK3OzwSFIx6TP3gru3F2vgX11T2QEM 1nLcSdwTN3OCx3Q5+P6ERKE2TPj2LnR7jH5tNKM10h+UoUDk19KW4qxVB9vlt8pOjJ49 y4INNwqDe5rIv/tQK3LyH/Y8Q7kVNPecJm2Do/86YjEud3mWKeOnzqtFVw73hq9OdWSV uINw== 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=RZT0NlqWPDVv3ZY8knEZ75oaH0KEYhTsNL+EUjOlpgk=; b=UwyACqdwLsSfS+TqOfEuS0I5nSjS2Cvji/dERcKwZLQ5Ka/540ncRk8PpJQZKgOnY+ P74M5V43d2KU2ozWNzhoccQtySWLTzRHsshZQwvHuygCk066mEU5+xqCkhmUVbKowoRI pQn51i14v+wRi8/FmyltJBe+Y/Y6f8AmnlpwO1xd4ZIg5Uxs776pkZdzi0eRL7XaFobN 633asy3IbIdUd4rbrE7TbOtJTTjpBrYa0AWtOVOLgZTBh3TdCtkaZhhPDpTyBpwAs2lc Fw6ISHip3DLodBMBs+On9nZf0+Jr5dPcCnUTibdzMshO0KiDkyAPntndeUCfzGdX5V/O iArw== X-Gm-Message-State: APzg51D8ZloGCyF918qpoOWswj/cBgOo/AMNjxBtFol4XNWs21o0UnNF b0MwPtWPCO10oGzfDwlHYCM= X-Received: by 2002:a17:902:2e83:: with SMTP id r3-v6mr31398676plb.80.1536029210221; Mon, 03 Sep 2018 19:46:50 -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.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:46:49 -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 24/25] usb: cdc-acm: Change return type to void Date: Tue, 4 Sep 2018 11:44:50 +0900 Message-Id: <1536029091-4426-25-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/usb/class/cdc-acm.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 27346d6..de6a27e 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -572,23 +572,15 @@ static void acm_softint(struct work_struct *work) static int acm_tty_install(struct tty_driver *driver, struct tty_struct *tty) { struct acm *acm; - int retval; acm = acm_get_by_minor(tty->index); if (!acm) return -ENODEV; - retval = tty_standard_install(driver, tty); - if (retval) - goto error_init_termios; - + tty_standard_install(driver, tty); tty->driver_data = acm; return 0; - -error_init_termios: - tty_port_put(&acm->port); - return retval; } static int acm_tty_open(struct tty_struct *tty, struct file *filp) -- 2.7.4