Re: [PATCH -next] platform/x86: intel-ips: remove unnecessary checks in ips_debugfs_init

2018-12-03 Thread Andy Shevchenko
On Tue, Nov 27, 2018 at 11:09:38AM +0800, YueHaibing wrote: > 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/ > debugfs_create_dir. > > This also fix static code checker warnings: > > drivers/platform/x86/intel_ip

[PATCH -next] platform/x86: intel-ips: remove unnecessary checks in ips_debugfs_init

2018-11-26 Thread YueHaibing
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/ 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/