Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2114974imm; Mon, 3 Sep 2018 19:48:17 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda8rsKN9LHt7d6TFN3s2krJ2SlexWt+dQb2OcL4HzWCC4tAoZjtIQqwLQjkTDybyrZw9yfC X-Received: by 2002:a62:d085:: with SMTP id p127-v6mr32627924pfg.119.1536029297742; Mon, 03 Sep 2018 19:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536029297; cv=none; d=google.com; s=arc-20160816; b=WvuMIFUljtbfc+YSNoCBBtzgCJPkT/MO5MxLTV2GyJ/34jJ0psFp0fRPqKVzYLuFvh XxR9bmW0FPYN/sk0CMLAzZKYTlVXGl4CJS9/5F1ZE/w1/9eUPvMtNZEC0SlcFmAzpAXs 3a/hefxa1r2E0UFvJ0f1Kqe+iKhQTOs6IPE6ugfyCT+4DQqIuHu5fKza/E5YADt0/o6W SDB1AovkIaZ7Jeu8F8ZZTKA4IJbaTl99h7+aQht5K+IBJ9NECU1PedQqL+aA3M6zo5He 8Am1l6rGoWNhK7H2EeifzaId+R4HImv09dClya/ai6Ze/qmYSM0qyLUQavu6UCKEaidO 7WGQ== 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=oYYQC2lkr9IQJTqeFD66xCNBcnWgOnsYuLXK//u2PDE=; b=H8sMXeM05FtmoRj94S8JAzQBYnQ5eG4RmjdDdJBzLq8r3sKhB7WkQmwoR0ZcpC4hdo 76xW0iz/+C4cdrYHydjHj4sDqaI3SFg92IYCFrTGIcDyEYr0Y9szWMHXIk8z/YV20RZz ROSMnRn/dSx1MeDX/UTrNK2UYbnh4/ErYBT9KL5l1809NjY/SvijF/U0lTlzME92O+Ov jsa9VtuSG9Wxk0Ubw1oJ9Z4RNA+P3BodjidM2o3xZPacHco2f0P8rPu+PpjVBAU+BbTU QbJBqNduvRhatikccfRkdFVCCZ+//4TguBWLP8pPVK8LmhAUqLA7Jin7qiVqUSBxD2Cv o8AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=i5E4+keX; 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 m13-v6si18827467pgh.360.2018.09.03.19.48.02; Mon, 03 Sep 2018 19:48:17 -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=i5E4+keX; 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 S1727961AbeIDHJX (ORCPT + 99 others); Tue, 4 Sep 2018 03:09:23 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:35192 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726047AbeIDHJW (ORCPT ); Tue, 4 Sep 2018 03:09:22 -0400 Received: by mail-pg1-f196.google.com with SMTP id 7-v6so898844pgf.2; Mon, 03 Sep 2018 19:46:27 -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=oYYQC2lkr9IQJTqeFD66xCNBcnWgOnsYuLXK//u2PDE=; b=i5E4+keXmQBCY2tQQzXatN2SdOHTlREsIC2+XC3mh7qBzlx2WNNYNE0ijaHVZFriGl 88IRFrIVlEnSux5+Mv5/5qPauDnpX0snK9IXMtVXPruvoRDXOmSI7A3u2//m6KrAmc+G CTa1NBlfR1of5pEi57kQcdEalChJGL//o8ka4X+7sh0RdNWrNhi2++Trmp0jDYrr/CgZ NkCKhgr2M/5Ec/n/10/ThXf0vIpkSHtsXVOB4oObVNNfAujltW+5vbvG/UreNjb4uGRa YvIMOQegFuZlBA59IKqnuJisn/u2nWiEKUHLcqGNye2/jpRawhFV6Mhv41E/55XdW98F FkVQ== 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=oYYQC2lkr9IQJTqeFD66xCNBcnWgOnsYuLXK//u2PDE=; b=Au7lVRxoWtImfDBNSfhFSffb4EtLMJZh/32gOHSzhINUebKfZ3F6SPxXppplnriKLn Kk6JcVifXmLy0nlsxNKNwdQYPuuFkTQDxz3vuX/4TAwsHxEE+qdXAIAxoi6mV/EqxWC1 oTJEadjef0E7rEBREOPVtQVQ/oUgzvAioQ4EdG63bSPCwSgnVoDYOj3Dlpw3L0sbynII hYKKAllCaSpRPpPC0FRkCKpSGiUkHgPEXpH+jFX0R8nlL6E0bCEMlabPA5yLMoFKycND /IkoO2LLhhwVnOau+jkgtqnm3YFVZLg7KKAe3KVkPdb87Qw0jnJUdU8MTdiWqXW5SBOt C19g== X-Gm-Message-State: APzg51DjOS9rNUtMDAnVsxvSoglM8arqcYSv8js5kAsavC3Q6LO9+K8f Okd3GcOG5DehQmlKMmyg5GOYEHWy X-Received: by 2002:a63:df4e:: with SMTP id h14-v6mr29246819pgj.300.1536029186942; Mon, 03 Sep 2018 19:46:26 -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.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 19:46:26 -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 19/25] staging: fwserial: Change return type to void Date: Tue, 4 Sep 2018 11:44:45 +0900 Message-Id: <1536029091-4426-20-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/staging/fwserial/fwserial.c | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/drivers/staging/fwserial/fwserial.c b/drivers/staging/fwserial/fwserial.c index fa0dd42..5134019 100644 --- a/drivers/staging/fwserial/fwserial.c +++ b/drivers/staging/fwserial/fwserial.c @@ -1064,27 +1064,21 @@ static void fwtty_cleanup(struct tty_struct *tty) static int fwtty_install(struct tty_driver *driver, struct tty_struct *tty) { struct fwtty_port *port = fwtty_port_get(tty->index); - int err; - err = tty_standard_install(driver, tty); - if (!err) - tty->driver_data = port; - else - fwtty_port_put(port); - return err; + tty_standard_install(driver, tty); + tty->driver_data = port; + + return 0; } static int fwloop_install(struct tty_driver *driver, struct tty_struct *tty) { struct fwtty_port *port = fwtty_port_get(table_idx(tty->index)); - int err; - err = tty_standard_install(driver, tty); - if (!err) - tty->driver_data = port; - else - fwtty_port_put(port); - return err; + tty_standard_install(driver, tty); + tty->driver_data = port; + + return 0; } static int fwtty_write(struct tty_struct *tty, const unsigned char *buf, int c) -- 2.7.4