Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5336386pxb; Wed, 19 Jan 2022 16:25:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkU/wGnU4vSTPWlT/Q592gNJa5WHY3cxq7BUfdDQ8egA1/3Ajhgm1PUzDzYrz0B4t5uyP+ X-Received: by 2002:a05:6a00:148c:b0:4c2:6f06:8c70 with SMTP id v12-20020a056a00148c00b004c26f068c70mr29035493pfu.48.1642638308618; Wed, 19 Jan 2022 16:25:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642638308; cv=none; d=google.com; s=arc-20160816; b=W2rLPlg+czieuD7iEU/wOtcFst16NtjE6KIvSaxs7yjTJP9daJhxrV1/qq+8+6PaMP Qn95RhDqYAUzKLK1kUC15fMTS1a++sIRmTLPvbPBbk3CvUsRDZVw9Dmc27HiRT7IDgln YWtIIiMRfl/RUk45f5fH4PJCjAMCVJ8mcWDmCmWAHpDIk8Hg3bpeGQCYfW/BOvFAwF2N 8hqtZUuQE1van5SaG2id4I/Zp8bBv8K4yBrGKJwsEA38PC6xRCUVZYj3pXK8uqMQuITO 1YP8jE2rLN4k8gJNPQ+ReIX60M8NFcgaT+7/ANHAcngRnOQG2TwZuosZUOnt3LC+CF1F /VzQ== 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=xFDTL+y+53UJYvU29HtOdFhWRpsfui3wq0YRriYeVYI=; b=OQdknXAIBja2T+AKXDLULPm3moxEWr4m67ZHxxAMVXPUTr0Y+81a6Evylu4jJjkzpR g+FNPodgfUS82qdg5CHELMPkAfRD32SmjIuI0SdQBGKhAgjATcEdNDR6Noa8601/+UKc AMpO7HGmC5XbCA215QNt31hom3AGxf4HLpJ7u7hnKZuAHuF6978MdYsSVdVwkPG0CXI9 5GigexT1dP4slu6XgSitO90gmyr7SLI3Pr1Gh9f5kMteeoIbl0C7uYm8TKkkFRw45y9I kLPNspehrEgt/wNLlEK3a+a2abpgdopJHj/ecbg8+Qz7wvYG0a/N1G1HSqUYr/S8l5pQ f/sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=BDAt+6B3; 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 d15si1510739pgk.641.2022.01.19.16.24.56; Wed, 19 Jan 2022 16:25:08 -0800 (PST) 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=BDAt+6B3; 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 S1345444AbiARJPk (ORCPT + 99 others); Tue, 18 Jan 2022 04:15:40 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:49832 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240550AbiARJPi (ORCPT ); Tue, 18 Jan 2022 04:15:38 -0500 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 20I8SCrW009764; Tue, 18 Jan 2022 09:15:38 GMT 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=xFDTL+y+53UJYvU29HtOdFhWRpsfui3wq0YRriYeVYI=; b=BDAt+6B3lUF6Zt+sw0QZFGDnAl5CVajtps7gYPGB0BbQ18ejRzsV7gE2m6f2UDp7dgvP jqW3GdKWFDq98As0JwVEqHC6/vmx9ZCddNLC02COSo5gJfWsRXSOiMa9y8uYnZVSwiII RGA2+6bmSdGiR/Jv8u3EIKoTTqKLpEZcTL3ra/O7F8bmaIiR9+MMrAjqt9zsSF7oXohN yQeFoYOeFPUvgajfEE4MRLfe8t5KhmfF2Sjhz9T2hTk8PpWdig8wkMf8Gk2Rsw/ObHxz 2sbjFwOb5+zgawu4XDOYETlPpG+S+OfTCann0uPYlumnimOoyVXTj5optfZG6Mw9L7Xx KQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3dnt2m0u2c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Jan 2022 09:15:37 +0000 Received: from m0098421.ppops.net (m0098421.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 20I9CaWa009676; Tue, 18 Jan 2022 09:15:37 GMT Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 3dnt2m0u1s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Jan 2022 09:15:37 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 20I9DYug002972; Tue, 18 Jan 2022 09:15:35 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma06ams.nl.ibm.com with ESMTP id 3dknhjadtt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Jan 2022 09:15:35 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 20I9FWlX31195586 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Jan 2022 09:15:32 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1584D52059; Tue, 18 Jan 2022 09:15:32 +0000 (GMT) Received: from osiris (unknown [9.145.173.74]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id AA0F75205A; Tue, 18 Jan 2022 09:15:31 +0000 (GMT) Date: Tue, 18 Jan 2022 10:15:30 +0100 From: Heiko Carstens To: cgel.zte@gmail.com Cc: oleg@redhat.com, gor@linux.ibm.com, borntraeger@linux.ibm.com, agordeev@linux.ibm.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Minghao Chi , Zeal Robot Subject: Re: [PATCH] arch/s390/kernel: remove unneeded rc variable Message-ID: References: <20220118075115.925468-1-chi.minghao@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220118075115.925468-1-chi.minghao@zte.com.cn> X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: ltU9_hDbkiSkduJFuQr1CgVQT2_Rj1qb X-Proofpoint-GUID: a1cxWxBiZ7YSt3qLMwbcA9Ypt5P0Wtp6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-18_02,2022-01-14_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 clxscore=1011 mlxscore=0 spamscore=0 impostorscore=0 bulkscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 mlxlogscore=659 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201180055 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 18, 2022 at 07:51:15AM +0000, cgel.zte@gmail.com wrote: > From: Minghao Chi > > Return value from user_regset_copyin() directly instead > of taking this in another redundant variable. > > Reported-by: Zeal Robot > Signed-off-by: Minghao Chi > Signed-off-by: CGEL ZTE > --- > arch/s390/kernel/ptrace.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) ... > - int rc; > - > if (!MACHINE_HAS_VX) > return -ENODEV; > if (target == current) > save_fpu_regs(); > > - rc = user_regset_copyin(&pos, &count, &kbuf, &ubuf, > + return user_regset_copyin(&pos, &count, &kbuf, &ubuf, > target->thread.fpu.vxrs + __NUM_VXRS_LOW, 0, -1); > - return rc; This "breaks" indentation. Could you guys please stop sending such semi-automated generated questionable patches? I really don't see any benefit besides code churn, and the possibility of introducing bugs. Thanks!