Skip to content
Commit 9a92ed29 authored by YueHaibing's avatar YueHaibing Committed by Andy Shevchenko
Browse files

platform/x86: intel_ips: remove unnecessary checks in ips_debugfs_init

As Greg KH explained in:
https://lkml.org/lkml/2015/8/15/114



There no need to check the return value of debugfs_create_file() and
debugfs_create_dir().

This also fix static code checker warnings:

drivers/platform/x86/intel_ips.c:1314
 ips_debugfs_init() warn: passing zero to 'PTR_ERR'
drivers/platform/x86/intel_ips.c:1328
 ips_debugfs_init() warn: passing zero to 'PTR_ERR'

Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent e278558a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment