Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp378149pxk; Thu, 17 Sep 2020 05:42:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc25sQVtIzmVpnWeg9vDYml23SNsNy0pXdwEwSJ5uGIfNNGsHZkKNXZH+p8Vixp7PCE8fA X-Received: by 2002:a05:6402:a46:: with SMTP id bt6mr32705723edb.269.1600346526861; Thu, 17 Sep 2020 05:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600346526; cv=none; d=google.com; s=arc-20160816; b=qxjUvm9Vf4qn9OWMIxVFf9r49vbJpl9gHICDRYUnOxHO7Z7vn0iyGcEI1X4C72quAE TkBejQHnvpwbPg377hfmCxc5sV2ofFCRzDcyhJs9rRUH9cHUgOkZu4KzZOuoyW34/3wD U30ONwcDuQCLFBq7KooFKZECAJ+g/RLZ8aMiDvM9GZsvCw1UopbeaFwTdar5WaGx2vSh 4LXa+irvPz7bmK0X0J8AFgRxbN0ZdwJOmWVY7NM41qY8dOVV5wzPShqxGkydlDCsa6e3 Z//SbMq+v323S2Db1yiU2wxbkkQestgrawaNiaed3RErERRr7vihEu0zF2JmlM0vxqgI MkCw== 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=XpwJ6BFNKeoT/JiibdPDCm2H0MXV1Bc2Ukl5XDgH22o=; b=UrMRvcEEs221s+gs63PN8aQq40dAzyXAsBUsr4WtWH7H5g30LrVbfoOTok3VvQLc+d aNu27WNCvr3hGFfDSw1CCyaiUwWb3rUADEl7R8b5M00zXJfESok+09OMtCGE5o90nzBP zEVy/gKmA5k9zKvIoJDv58knjJnzqtj9wVr8vfh30h7tDCNR2WJzvrdmN5wrVVumXbmv YfvkRArkUtuweHOsgkYs9IvG+bVFFnAGmmJEvEMcM4CleRkZpGEVwUW2ztt6ntPRpaw9 rc51kCU2xkE+IMpmEB0PAZVxMVmV/MyYTGSU6cLsPe6gs6jHo9cxvObadjDKCDOsOlup dnhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=H1VYO8wh; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n13si14545287edq.92.2020.09.17.05.41.43; Thu, 17 Sep 2020 05:42:06 -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=@kernel.org header.s=default header.b=H1VYO8wh; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727003AbgIQMhe (ORCPT + 99 others); Thu, 17 Sep 2020 08:37:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:51920 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726951AbgIQMeX (ORCPT ); Thu, 17 Sep 2020 08:34:23 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1626A2087D; Thu, 17 Sep 2020 12:33:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600346034; bh=tdZKh1qLT5/CZgLEYm1IvQYFAkgpFAnpj9CITh0Zkqw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H1VYO8wh+cqUCtIwF8Gg/BZkUMELrZ3utpX5LMxkJmTBAW3S1GIZicW2tVT1t3zpC bM18Uo9l2XCsLNapvssmLb91kGpS4dXeuvJ1AZD5JQBGCrUscMfBtsiIsZVhkZHKj4 jaA66+mq3vHtmPSI35KnEWR5fJ9T2LvSvJkiwUYw= Date: Thu, 17 Sep 2020 14:34:26 +0200 From: Greg Kroah-Hartman To: Laurent Pinchart Cc: linux-media@vger.kernel.org, Mauro Carvalho Chehab , linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/7] media: usb: uvc: no need to check return value of debugfs_create functions Message-ID: <20200917123426.GA3595353@kroah.com> References: <20200818133608.462514-1-gregkh@linuxfoundation.org> <20200818133608.462514-7-gregkh@linuxfoundation.org> <20200818234719.GD2360@pendragon.ideasonboard.com> <20200917122550.GA5053@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200917122550.GA5053@pendragon.ideasonboard.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 17, 2020 at 03:25:50PM +0300, Laurent Pinchart wrote: > Hi Greg, > > On Wed, Aug 19, 2020 at 02:47:19AM +0300, Laurent Pinchart wrote: > > Hi Greg, > > > > Thank you for the patch. > > > > On Tue, Aug 18, 2020 at 03:36:08PM +0200, 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. > > > > Is there no value in warning the user that something went wrong ? Silent > > failures are harder to debug. > > Could yous share your opinion about this ? For debugfs, this isn't an issue, what can a user do with something like "debugfs isn't working? What does that mean???" And if we _really_ want warnings like this, it should go into the debugfs core, not require this to be done for every debugfs user, right? debugfs is just there for kernel developers to help debug things, it's not a dependancy on any userspace functionality, so if it works or not should not be an issue for any user. Unless that user is a kernel developer of course :) thanks, greg k-h