Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1706317imu; Thu, 24 Jan 2019 00:00:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN4ZOLfwrXydxt9M0Tm/lnfprwbXHT/z6HJ0v9FUauulSRle4EKoUnUbtmI102XCGeu3omf+ X-Received: by 2002:a17:902:64c1:: with SMTP id y1mr5529372pli.64.1548316810959; Thu, 24 Jan 2019 00:00:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548316810; cv=none; d=google.com; s=arc-20160816; b=EDESjXkoXfm28kCN211bRB3ngKnqozL/e6rJaZKMPaC6sXOS3w7/65DkcjcJcnuY+0 Y3W5rQqZtvUI5nYJZ3wEqwq9L4UbDLbrbDOVfCJP9nW0NBkGinXpy0FabsQEu14sySGO 8hLvosQrDDo+yH/dp+t5nogyBcPE6BOAyoaepTPQvmySfSgVXZPZd8muSyobtZbLniS2 s2J7yajoFUocAEybFLX6pV2V7/2Ejfyvtx5+KY6ARIQ/DXNz4AVCoWE1fuh8gUV7iINU IA4CoangT7vPDHopw9k7rdfSWle5+V8nhaqKov87bGZOZtZ+VvtxxaWy8+/qNNKluSfs wDpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=krVR0RuMpCJWesgiRw/G3mLFSaTJr/cS7jpVt5y4yTA=; b=xVZtJmyZXxj1oAcFyIWcPQLQ2cwTB2yDfSHIyB6y3AUfGEb8PNYDiiSCvbd+wCsAYN WZqlZvNNOF+f/rMnFBoruDisW+d0baQG//QFIe8tn583b6/vnXF2jSLk1klkXv0X/VB5 wvht2Oti1CYZSCoJGt0Wsrnyx5qwt8LcrVq/GWARMqFsZ8I62MgAMuzlWn8OVtAKHRJH IRJobk7g08VRQ5hfsreFFBETGUYENnHM3Z+UNKzKN5HR9yj9e/2Za5DdzM8rW4JbX1uc CJ+h/c/GwFSKIkG/LOxER7osjkMHe2m9gmfO+9IM4sn1ItRTej/RMhyd0rCtRbb1g9eS VwZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@benyossef-com.20150623.gappssmtp.com header.s=20150623 header.b=DuVSRX2A; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i129si23104886pfb.32.2019.01.23.23.59.55; Thu, 24 Jan 2019 00:00:10 -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; dkim=pass header.i=@benyossef-com.20150623.gappssmtp.com header.s=20150623 header.b=DuVSRX2A; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726170AbfAXH6c (ORCPT + 99 others); Thu, 24 Jan 2019 02:58:32 -0500 Received: from mail-vs1-f66.google.com ([209.85.217.66]:42246 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726045AbfAXH6c (ORCPT ); Thu, 24 Jan 2019 02:58:32 -0500 Received: by mail-vs1-f66.google.com with SMTP id b74so2971870vsd.9 for ; Wed, 23 Jan 2019 23:58:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benyossef-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=krVR0RuMpCJWesgiRw/G3mLFSaTJr/cS7jpVt5y4yTA=; b=DuVSRX2A6xh/6/3Vp8CUlWqeqMzPhevp7ZR/OvbMkmV1fDHcDQA/HFcPhMOeCOsJd+ aefCZdTYZCtnv93Se1llzvjH60RSC0gg8OGd28TJe8nXYMA0lRLjmI+jrwPRE1cFY0yh oVvHUuxedpoHei33GANK1H4T0lfXEom825BiXNt43gNSC+kfopw2QKel9+nsV3+kA1sZ +Sr0L7WaiyjDNI9YWeK1/5zJPjF66inx7OlD7M/ITMbvcq6+CloUTWdMXfQpZIHWZ4tV sG+7INJzikpQTwCpaUdsb5HCzlJFZV6mkXAcpifVCZHL+8nCpzCOB3xzLwgM6DTgXOow MXmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=krVR0RuMpCJWesgiRw/G3mLFSaTJr/cS7jpVt5y4yTA=; b=pttmCjwzMSZgxpcTaGDyhnSNuK0B7yZHlomksEVr4fHclDoXRObY/chzqhxD6QUJpr JsAh63JXwuBiF1lZDQuaGGInB9+gEvJhcdLeG+R7lD7IQucle/mJ+hHk5ctcx/Y8VV8f +RKzy8f4wcMwQsqwwCjs8/FblA84rmed5ss6QoqG9FLzjShsdZcNRzIQFfD6YzLO/Mfr ioD4+lW+9Q6VtRVbUHDHn/L+k1Frp39KaTMTZwaF5Z417kaQJJdK8qBKGZCRM29eD24A 5Xi8wIxv8e10QszjkRcphzr8QfG1bwAlT3caYDnZiXZcSf1rhCiU6FM0/GBKKngFu+UP ByvA== X-Gm-Message-State: AJcUukd3XcOc7/Zsu+SDveiRX9VZ8OBxUAP3WdS4I17djCIiPOr8XJ1g gB2IJdVIld8daWGXebCjgIwxzqncxrF0TjK6LI/KRyx2 X-Received: by 2002:a67:f445:: with SMTP id r5mr2430437vsn.164.1548316710929; Wed, 23 Jan 2019 23:58:30 -0800 (PST) MIME-Version: 1.0 References: <20190122151422.14204-1-gregkh@linuxfoundation.org> <20190122151422.14204-3-gregkh@linuxfoundation.org> <20190123133734.GA24700@kroah.com> In-Reply-To: <20190123133734.GA24700@kroah.com> From: Gilad Ben-Yossef Date: Thu, 24 Jan 2019 09:58:20 +0200 Message-ID: Subject: Re: [PATCH 2/7] crypto: ccrree: no need to check return value of debugfs_create functions To: Greg Kroah-Hartman Cc: Herbert Xu , David Miller , Linux kernel mailing list , Linux Crypto Mailing List , Yael Chemla Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 23, 2019 at 3:37 PM Greg Kroah-Hartman wrote: > > On Wed, Jan 23, 2019 at 02:58:22PM +0200, Gilad Ben-Yossef wrote: > > Hi, > > > > On Tue, Jan 22, 2019 at 5:14 PM 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 shoul= d > > > never do something different based on this. > > > > > > > > I get the part about not failing loading the driver just because some > > debugs entry isn't available, but wont it be weird if > > debugfs_create_dir() fails but debugfs_create_regset32() succeeds and > > we suddenly have weird files in the debugfs root dir? > > Not the end of the world of course but maybe it's better to avoid > > trying to create the files if the directory is not available? > > See this patch to handle that theoretical issue: > > https://lore.kernel.org/lkml/20190123130917.GZ4087@dhcp22.suse.cz= /T/#me91cc3d16185be13d64f85c8477c543cbda9baf6 > Ah, sorry. I've missed that. Acked-By: Gilad Ben-Yossef Thanks! Gilad --=20 Gilad Ben-Yossef Chief Coffee Drinker values of =CE=B2 will give rise to dom!