Commit 909bad2d authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5a2338db
...@@ -761,10 +761,6 @@ static int kim_probe(struct platform_device *pdev) ...@@ -761,10 +761,6 @@ static int kim_probe(struct platform_device *pdev)
pr_info("sysfs entries created\n"); pr_info("sysfs entries created\n");
kim_debugfs_dir = debugfs_create_dir("ti-st", NULL); kim_debugfs_dir = debugfs_create_dir("ti-st", NULL);
if (!kim_debugfs_dir) {
pr_err(" debugfs entries creation failed ");
return 0;
}
debugfs_create_file("version", S_IRUGO, kim_debugfs_dir, debugfs_create_file("version", S_IRUGO, kim_debugfs_dir,
kim_gdata, &version_fops); kim_gdata, &version_fops);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment