Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp216709imu; Fri, 25 Jan 2019 00:49:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN62BzpkH8JWK09eUgYsUbOvttIRL6m/DBQ+igCCD6deECaat668gem4bbFc0LbmhEm3lCQN X-Received: by 2002:a63:5922:: with SMTP id n34mr2599084pgb.435.1548406180647; Fri, 25 Jan 2019 00:49:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548406180; cv=none; d=google.com; s=arc-20160816; b=zbNxsvyzGTBRWoVSUJeu3R3l1FN+LXQHL7l0mJ7txuLdyhYZay2G9GXJunO1twvc12 PiLUdZJBwLC5dGGva1Km6h/NboGCTUc3VkT/Ac2mLcJcOvoUj1G5mlVP8OKxxWHvj/L9 Jl07+L8eP2XIHJPQ+U3RT5OId8OamysPkI5rJ4i5rW9YQ4M73vI+PMsL/FaCzvOuEkwG mP+BD4AeruFHtzl2TTB8tRF+9u6ueyXQpwyvSjdH+QHSCyjM06smjf08Dj3qrpkEy3re Ma3I1htAQ6IW69iv0JM1ntX4alVKBq3SvEnXAqKqPiYwGrsXxOiyD7TocJq8OR+tTGek EK2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:message-id:in-reply-to:mime-version :references:subject:cc:to:from:date; bh=9q1wtc92ne2kTpqPBbuyjKpWzSEboBHFUuuwdxodmpk=; b=R4ystuLLZsNcmukRTd+vGdpEqpow/AxEsyGHWpdJcWNtj4F9KEwoiKqcZIqE4jawfc KdtcgiVd3gUYa3IEgzH3g3zoio7CIeDSRoOuVV9ETAABuMWTpKclQ2jV3pgIvl9luwnj TNlg3b+3JTOuv4Q2JPcP2EmmqEdVTgt1d5WEce5ZBTlFTMd/NSxkLqwF7A9t5TzRerNI wBHJf9IgKeeC/ctrCCN2w/24DyDY6i7lGvwNpHcAMqa5StlR5mjfdRF4xredZx0cQFjM FMLlyagu4e0+p/22jKpxmZzWhMREY8CMewKkDVq2b121iBmBoaF6REtiw5TF2yfjsLUw 90iA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69si21403496pgc.164.2019.01.25.00.49.25; Fri, 25 Jan 2019 00:49:40 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728330AbfAYIsX (ORCPT + 99 others); Fri, 25 Jan 2019 03:48:23 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:35428 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726520AbfAYIsW (ORCPT ); Fri, 25 Jan 2019 03:48:22 -0500 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x0P8cuvu052717 for ; Fri, 25 Jan 2019 03:48:22 -0500 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2q7v69rgjk-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Jan 2019 03:48:21 -0500 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 25 Jan 2019 08:48:18 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 25 Jan 2019 08:48:15 -0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x0P8mEVW56754340 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 25 Jan 2019 08:48:14 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5D85611C050; Fri, 25 Jan 2019 08:48:14 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0C7CF11C04A; Fri, 25 Jan 2019 08:48:14 +0000 (GMT) Received: from osiris (unknown [9.152.212.95]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Fri, 25 Jan 2019 08:48:13 +0000 (GMT) Date: Fri, 25 Jan 2019 09:48:12 +0100 From: Heiko Carstens To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Martin Schwidefsky , Kees Cook , Christian Borntraeger , Hendrik Brueckner , linux-s390@vger.kernel.org Subject: Re: [PATCH] s390: kernel: no need to check return value of debugfs_create functions References: <20190122152151.16139-3-gregkh@linuxfoundation.org> MIME-Version: 1.0 In-Reply-To: <20190122152151.16139-3-gregkh@linuxfoundation.org> X-TM-AS-GCONF: 00 x-cbid: 19012508-0028-0000-0000-0000033DF606 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19012508-0029-0000-0000-000023FB3A94 Message-Id: <20190125084812.GC3561@osiris> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-25_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=824 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901250073 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 22, 2019 at 04:21:02PM +0100, Greg Kroah-Hartman wrote: > When calling debugfs functions, there is no need to ever check the > return value. The function can work or not, but the code logic should > never do something different based on this. > > Cc: Martin Schwidefsky > Cc: Heiko Carstens > Cc: Kees Cook > Cc: Christian Borntraeger > Cc: Hendrik Brueckner > Cc: linux-s390@vger.kernel.org > Signed-off-by: Greg Kroah-Hartman > --- > arch/s390/kernel/debug.c | 6 ------ > arch/s390/kernel/kdebugfs.c | 2 -- > arch/s390/kernel/sysinfo.c | 2 -- > 3 files changed, 10 deletions(-) Applied, thanks!