Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3135378pxk; Mon, 21 Sep 2020 06:13:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1EPLIrIBSzS/L4ZCcf6M7MiGrpXU9DGf8wn3BMgXQT1YtM2fl9oHGPAoQtOxvIld/IYiR X-Received: by 2002:a17:907:20e5:: with SMTP id rh5mr49689998ejb.267.1600694031886; Mon, 21 Sep 2020 06:13:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600694031; cv=none; d=google.com; s=arc-20160816; b=vmSQ0b37wdAXH9uX2RYiCphCBT5OJHoUhW27yVyGs8kYKBuNGrGFPbKJerLJhG6bq6 d7m4EbjRYapJg/eYlj3g55YBDmtkrkx8sfnrEU6BMWLyiVHUTdxr+BTLEUCn/Z9ugX+L ebifxMuf827fQBQFB4gcMVzbAjTW4OgdHDu98YmU93MAqJ3613va9iUC72mhrzR5y9CI FD4tbf/5x0gMmmlSJjL+knaj8Q7bWWpSEkgAzqoiTRwlHA/DrrSmMEVEk5aIwa9NZ1B0 ESsYSbPqzOvjSk2cyiiDIH5OcDUJQeQI2mmqWZKtBta3jTg/bjy+PltJGYBtMiC/niG9 bUmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=qiCqLMgxteNjiixRULhJMZkQUErd6wWeGoIPFepT/g0=; b=G+jJZQyXGec6/GH0lZUM1OUamVvP9hT4X6US3QHbwdedztk1hBGsmmWFZ4Q/Q3lmLy 6cpRlQj/ko4D85UHn7p1a+btKD+vVYFJx3Y137Zf8KJcHH7+gI+fZp+2bqJRN6QFKALI 7BU6MW2dPMJygvFiihbU4aygnyhVajr7yT83wTGpPeMQGVIOobgKipIMau9ydVA+1liv mqQJQR5qEuPbidt4zdE1QucKBPRAclxxd6IT5QFcW0P5FG2a1esleGPhO5lyGwjzP+7g eoquEFRDiw1ai3WCyy/cD1n2lqcAwO5mp4NdSCgXYB8Li9oFz+NAtOI26Mb1PfY34LGj hIHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p9si8227031ejw.670.2020.09.21.06.13.27; Mon, 21 Sep 2020 06:13:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727593AbgIUNLp (ORCPT + 99 others); Mon, 21 Sep 2020 09:11:45 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:43260 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727444AbgIUNKv (ORCPT ); Mon, 21 Sep 2020 09:10:51 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id BCADCAD5ED1DF002F2BF; Mon, 21 Sep 2020 21:10:47 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 21:10:37 +0800 From: Qinglang Miao To: Heiko Carstens , Vasily Gorbik , Christian Borntraeger CC: , , "Qinglang Miao" Subject: [PATCH -next] s390/3215: simplify the return expression of tty3215_open() Date: Mon, 21 Sep 2020 21:11:01 +0800 Message-ID: <20200921131101.93037-1-miaoqinglang@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/s390/char/con3215.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/s390/char/con3215.c b/drivers/s390/char/con3215.c index 92757f9bd..d8acabbb1 100644 --- a/drivers/s390/char/con3215.c +++ b/drivers/s390/char/con3215.c @@ -978,7 +978,6 @@ static int tty3215_install(struct tty_driver *driver, struct tty_struct *tty) static int tty3215_open(struct tty_struct *tty, struct file * filp) { struct raw3215_info *raw = tty->driver_data; - int retval; tty_port_tty_set(&raw->port, tty); @@ -986,11 +985,7 @@ static int tty3215_open(struct tty_struct *tty, struct file * filp) /* * Start up 3215 device */ - retval = raw3215_startup(raw); - if (retval) - return retval; - - return 0; + return raw3215_startup(raw); } /* -- 2.23.0