Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ti-st: no need to check return value of debugfs_create functions

When calling debugfs functions, there is no need to ever check the
return value. The function can work or not, but the code logic should
never do something different based on this.

Cc: linux-kernel@vger.kernel.org
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

-4
-4
drivers/misc/ti-st/st_kim.c
··· 761 761 pr_info("sysfs entries created\n"); 762 762 763 763 kim_debugfs_dir = debugfs_create_dir("ti-st", NULL); 764 - if (!kim_debugfs_dir) { 765 - pr_err(" debugfs entries creation failed "); 766 - return 0; 767 - } 768 764 769 765 debugfs_create_file("version", S_IRUGO, kim_debugfs_dir, 770 766 kim_gdata, &version_fops);