Commit eb7cf945 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Thierry Reding

host1x: debugfs_create_dir() can never return NULL

So there is no need to check for a value that can never happen.  No need
to check the return value all anyway, as any debugfs call can take the
result of this function as an option just fine.

Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-tegra@vger.kernel.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent f3b0d879
...@@ -171,9 +171,6 @@ static void host1x_debugfs_init(struct host1x *host1x) ...@@ -171,9 +171,6 @@ static void host1x_debugfs_init(struct host1x *host1x)
{ {
struct dentry *de = debugfs_create_dir("tegra-host1x", NULL); struct dentry *de = debugfs_create_dir("tegra-host1x", NULL);
if (!de)
return;
/* Store the created entry */ /* Store the created entry */
host1x->debugfs = de; host1x->debugfs = de;
......
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