Re: [PATCH v6 3/8] interconnect: Add debugfs support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Greg,

On 15.07.18 г. 15:15, Greg KH wrote:
> On Mon, Jul 09, 2018 at 06:50:59PM +0300, Georgi Djakov wrote:
>> +static int __init icc_debugfs_init(void)
>> +{
>> +	struct dentry *file;
>> +
>> +	icc_debugfs_dir = debugfs_create_dir("interconnect", NULL);
>> +	if (!icc_debugfs_dir) {
>> +		pr_err("interconnect: error creating debugfs directory\n");
>> +		return -ENODEV;
>> +	}
> 
> You should never care about the return value of a debugfs call.  Just
> ignore it and move on.

Ok!

>> +	file = debugfs_create_file("interconnect_summary", 0444,
>> +				   icc_debugfs_dir, NULL, &icc_summary_fops);
>> +	if (!file)
>> +		return -ENODEV;
> 
> Again, do not check this.
> 
> Where do you remove this directory and file from the system when the
> code shuts down?

Will take care of this! Thanks for the feedback!

Georgi
--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux