Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp670927ybi; Wed, 19 Jun 2019 06:03:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWBYEgnNVxoPcpAxdB8hhYCY0ZBqOJICnTvCkEBYCajm0E6U4CExBGkJeA5+Avw/tRIA2A X-Received: by 2002:a63:3008:: with SMTP id w8mr7774279pgw.11.1560949418118; Wed, 19 Jun 2019 06:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560949418; cv=none; d=google.com; s=arc-20160816; b=FZrvJXWtWUW8TRVZXKHGgkfRuKJv9B0yM/6tgoC1Ohdyc8bGJ+2JHO7lPbe8fjb1Ny XJJhrYdJ/f4LXot9ayVuAouBM+iPATL0lkj5R0jqickVVdUa7bf6zIAtx+hfkiDxE4VS Mewikg/zMGKLKnSXB6qGsDi86ACOVkJ93K2JMp6ZXI4u2UULqQZj+X5UDKo3h0LNAoaO 5pFV/1/SLgzKWL1XfGZ19687WqMeYsJTMpDCWNzNN0s3rkGbMwbbRJNk+5guFQVmJHzQ 7g4lx+SUvtvIuBH+D6BOnDNZBaS0f/wTKhRnSrtIACwukYCKyU3ABP+nsPbjzINMRqvc w3Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=M1cAH3qdEmYIrvvvJWQNW4N6QhoY1RFUUDz5vXe0Ae0=; b=M0VxnJHmlyNqDy0e0Noia1q76J2bUfGxNrNLiwsItB+8SlSrelQHoMJ5ty6m1L5T76 xbjil6AeGmtmyBaLfJW2kjyYp7tT5CLxxYsFWrRPr3dEKcU0QoyGwc/r2HJPdEVKrEDL JjUtZqeaMSksYK4Mvk6EJwktsB5HNKswFR/rq8/G8CZ59Deuaqd35qJQkuj0giNJYB7U /Ra70N6WjvAoDFxz3/ye6OQ2EbwbI09v8T/ZYxYU1TaZQDoPIMyfFNfDGWKT3dfyYg4f bJH5AvXgDyeRxWiRz58QhTcu2J9yeU4EUqM3adChM/+OkqEBXj+V8XLDK/9p9YIMIyWW PHKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0Sqs+Cok; 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 z7si3016067pgi.365.2019.06.19.06.03.18; Wed, 19 Jun 2019 06:03:38 -0700 (PDT) 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=@kernel.org header.s=default header.b=0Sqs+Cok; 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 S1731839AbfFSNAz (ORCPT + 99 others); Wed, 19 Jun 2019 09:00:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:43010 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727076AbfFSNAz (ORCPT ); Wed, 19 Jun 2019 09:00:55 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 DBCE1208CB; Wed, 19 Jun 2019 13:00:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560949254; bh=VX2WANL03gblB2MwxQNNRKPubFvAzDWLoRm2P0Rr+z4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0Sqs+Cokecyz02B4F8511aOCWOi5lKBv9R/sOaIszsnE/gi/eSEttBURWkUM1s7e9 44+HL+MpCfoMbDi3XtmknDuGyGfXhOY4xS56YjQP03w90RRLlnZp/9zj5UDhAc20Ig 7GNCID/Uy4330A6nrzrVMHoFb81mfu7SjXxVDIZE= Date: Wed, 19 Jun 2019 15:00:51 +0200 From: Greg Kroah-Hartman To: "Winkler, Tomas" Cc: Arnd Bergmann , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] mei: no need to check return value of debugfs_create functions Message-ID: <20190619130051.GC27090@kroah.com> References: <20190611183357.GA32008@kroah.com> <20190611183816.GA952@kroah.com> <5B8DA87D05A7694D9FA63FD143655C1B9DC4B6C4@hasmsx108.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5B8DA87D05A7694D9FA63FD143655C1B9DC4B6C4@hasmsx108.ger.corp.intel.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 19, 2019 at 08:25:58AM +0000, Winkler, Tomas 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. > > Maybe need to mention that API has changed in patch ' ff9fb72bc07705c00795ca48631f7fffe24d2c6b' in 5.0 > and create_dir() doesn't return NULL but ERR_PTR() and proper checking is done inside the debugfs functions. > Not sure how critical is that but, but this should go probably to stable 5.0+ as well. It's not critical at all, the odds of an error ever returning, or NULL, from debugfs before is just as rare as it is today :) > Ack otherwise. great, thanks for reviewing it. greg k-h