Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1804440pxk; Sat, 26 Sep 2020 05:49:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxr7Vmz9FBxzk3YsJ5j0IGW1M0zb22IozbRis0hX5S8qlaEwWfhKEzPRwilgA/NkFwb/9YQ X-Received: by 2002:a50:f28b:: with SMTP id f11mr6399950edm.44.1601124551288; Sat, 26 Sep 2020 05:49:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601124551; cv=none; d=google.com; s=arc-20160816; b=LBYN5v+KcxedeWKb57mj7onpyUsMt0kVEJEarYEwkY+2GxaMDCKAcGb3UMKF4ihMfj vZsTsEbJVLdFncWWyNyvDTQiSPV6B7o45tzJrVq6De2z/aiQeA2AydTojCs6Goyl/cVO Hwj7JdzdL8XWHsuB5R2u+2+KDy1WL27DaSiU9jWTqdTVkW05n6Fg21c6ypze/gOHHOg8 q/ahNP6t1iU4+47LxLzf70qiNF5hGNrZOya9/UsF8VkqobxYc9pc6LFNHjrYDyocsNrQ XIjxfXjKZVeJGl0UjM7N6C18fOxpm19UFuhNORI4MxQ6lhlfUEKJWFOeF/O3gbOsPP9x ghXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8LdtzD9z70sMUdf7Q0gBMl1ujJha7UtbNjFGaFAi+GM=; b=K+CF3mHXaW1N28MyF90KMBJQX+X8AlA1ZhMvrpa9elQYKsxy18p9+GksYWssYlP//D aZeHC2jDTEbKG92LMOQGi8h7STq481ulxJer7kdT5kNxJfIyDEnD2LL8vskK03SuACBB qAeHJVY1wtsavoSP8Zjtqq4TH3vGYTlWhEM4Lg91EP11Y73wJIbEXj7SuousNzLa0o5T HPENjb32XX1rd5YjuHhXEk/78jr58rK/0SlicOLNjxR/VHdeFsECYic+zLNJZlS+wOFV 43r+i8BDK4a8JuEu3Rqdex3+D2xsKOoi2u/+YVUDuB189c7+OWI1I80HolRizsxQsF/R bh2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Z18nZYBv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w20si3843743edu.534.2020.09.26.05.48.48; Sat, 26 Sep 2020 05:49:11 -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; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Z18nZYBv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729047AbgIZMrM (ORCPT + 99 others); Sat, 26 Sep 2020 08:47:12 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:5794 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726316AbgIZMrM (ORCPT ); Sat, 26 Sep 2020 08:47:12 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08QCQ7EW138181; Sat, 26 Sep 2020 08:46:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=8LdtzD9z70sMUdf7Q0gBMl1ujJha7UtbNjFGaFAi+GM=; b=Z18nZYBvTnX3SVBoCKePaE1A3DguY5Acl46pyRn7CyXu+qlx9nZZYikwmYBbpaUBe+gM lMKaJHOVupVdndd0ivHlruUnRrX0b1Ywj/KyRwo+oeDXMWfRNVZz/Dfv95Kez+FwtTc5 +Be5LfaeZxIw60sFw7U42vUkVt5cxb6E7psFIBLYbOtn8g4aG4gN3t8sYBigNFdD9fSL pjuhTkYNy31gSzWLEcBln85GVBY8t9FEOyfz/MowaFkDI44QoncI4AgpF/WCqkFIdiYS 8mhn2CIP6UrZetjLcg8mhG6JWF9FTWgRzLniEY2ny6InHEZeqCDb9ip89zPtKKWBYTOH uA== Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 33t5n709ke-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 26 Sep 2020 08:46:58 -0400 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 08QChDcP023531; Sat, 26 Sep 2020 12:46:56 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma03fra.de.ibm.com with ESMTP id 33sw9885xs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 26 Sep 2020 12:46:55 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 08QCkrGl23855388 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 26 Sep 2020 12:46:53 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 072F911C050; Sat, 26 Sep 2020 12:46:53 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8A50511C04A; Sat, 26 Sep 2020 12:46:52 +0000 (GMT) Received: from localhost (unknown [9.145.18.16]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Sat, 26 Sep 2020 12:46:52 +0000 (GMT) Date: Sat, 26 Sep 2020 14:46:50 +0200 From: Vasily Gorbik To: Qinglang Miao Cc: Heiko Carstens , Christian Borntraeger , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] s390/3215: simplify the return expression of tty3215_open() Message-ID: References: <20200921131101.93037-1-miaoqinglang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200921131101.93037-1-miaoqinglang@huawei.com> X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-09-26_10:2020-09-24,2020-09-26 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 spamscore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 suspectscore=1 bulkscore=0 adultscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009260111 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2020 at 09:11:01PM +0800, Qinglang Miao wrote: > 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); > } Applied, thank you.