]> asedeno.scripts.mit.edu Git - linux.git/commit
platform/x86: intel_ips: remove unnecessary checks in ips_debugfs_init
authorYueHaibing <yuehaibing@huawei.com>
Tue, 27 Nov 2018 03:09:38 +0000 (11:09 +0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 3 Dec 2018 19:40:03 +0000 (21:40 +0200)
commit9a92ed29ca961f118b45a2893416df753c287845
treeddfb930b0eb5c31c972099d855717df43e0d2896
parente278558a1f4b91ed381d5b0168e2f6743a03ae20
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: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_ips.c