Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp832606ybs; Sun, 24 May 2020 23:40:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIFNVOFtyhOmyDfP2hb9J9/Gqx4n2Nz47cUWJWhFuxzCmZHTDSNTfPJUxS+YmB3xVH20Zz X-Received: by 2002:aa7:d98f:: with SMTP id u15mr13520499eds.42.1590388808136; Sun, 24 May 2020 23:40:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590388808; cv=none; d=google.com; s=arc-20160816; b=w9Gp0l+TYGc/yXLDbJ6tOEtZ8PUHspC/vkuINmZI0hxWn7FsDGH3gzsCtHBsTPdBL1 55BHLXfvSBwU/4gdYzvacQ1tT3zBv/HdlPKH4IHX/mNVj3G0L0qUyv3urUu2IpTa4x/1 hErikf0csHT+yIPJD/YVs4bD9tIIAgPOuANfvYaHVEZICB5XfmM731fWoLsIbjbAu2+w KbT0/Fwh/hKFcZjnQc8VgE81FZiWyA+zoXCfvkfyhUQhIg2oBhLnALPOrZSbGAp4/dAI +8B1JhPS0gqJvWRaySnoc9vUlEIHHDKiiY/hMKUGjG/C5iDkiPiIeltXWNqZurOpgFev 8X+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=MuyNumZ9keRBW+Xv1ejK5hvaxGiFGwMwVMUk4bmok3w=; b=D28Lj5q0CrK+OzClD6u5lS+AHP29fW1DVCejKw3W2pJJ9e2K/WpKdaYwWFeKg4Ph3p YqM0q9ZDdEfYMz4wu6EwI+zIkPaL6vDv0qKMDFHsc+EBQPs7vd/PG0hQ3Tae3H67rFjB 8iZjHqioPFPDw7GzuO63iD7hP4QxfiQAd7aNPhauAsDdWzC0CvY5AzoqOH3nWof0KeF+ gyQdkvszXowfKOrmBFQ3ECbkoUMqgl1WpKKP2K264YUT3ifj77XPdx+l40/lR/j30i9G JQsYCqSk+BLFCWl5Vg8Uu6SE2un2/Lv7Wds2IDd/UOAM/3oJgSh8fPQKppOpjHWi28jT 1BSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2ZEULfnc; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v26si8791641eda.549.2020.05.24.23.39.45; Sun, 24 May 2020 23:40:08 -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=2ZEULfnc; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388972AbgEYGfR (ORCPT + 99 others); Mon, 25 May 2020 02:35:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:33468 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388519AbgEYGfQ (ORCPT ); Mon, 25 May 2020 02:35:16 -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 ACDCB204EA; Mon, 25 May 2020 06:35:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590388516; bh=1QEAgjCyvnyb171lptQSm1J6l+YR5WoKvG6NJbtyIZU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2ZEULfnc+3Xbo8rRtjBgvdHFGWq5OzX/d9kjA5RznxpkpP3om5zFmob3nuUl9Lvkt C2Qgm2A4CqdqX/UAHkbW1bcCznkjJDjKFN0Xvi1C77SRkh4e3qYkv8/qa/WgjzDLjo Il/S6W7hpRkgFKtWtW4+7bgVL/4hA/ayaTQ4xoU8= Date: Mon, 25 May 2020 08:35:13 +0200 From: Greg KH To: Bhaumik Bhatt Cc: manivannan.sadhasivam@linaro.org, linux-arm-msm@vger.kernel.org, hemantk@codeaurora.org, jhugo@codeaurora.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 5/7] bus: mhi: core: Introduce debugfs entries and counters for MHI Message-ID: <20200525063513.GA59195@kroah.com> References: <1589832241-13867-1-git-send-email-bbhatt@codeaurora.org> <1589832241-13867-6-git-send-email-bbhatt@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1589832241-13867-6-git-send-email-bbhatt@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 18, 2020 at 01:03:59PM -0700, Bhaumik Bhatt wrote: > +void mhi_create_debugfs(struct mhi_controller *mhi_cntrl) > +{ > + if (IS_ERR_OR_NULL(mhi_debugfs_root)) > + return; Why? Should not matter. > + mhi_cntrl->debugfs_dentry = > + debugfs_create_dir(dev_name(mhi_cntrl->cntrl_dev), > + mhi_debugfs_root); > + if (IS_ERR_OR_NULL(mhi_cntrl->debugfs_dentry)) > + return; No need for this check either, just call debugfs and keep on moving :) thanks, greg k-h