Skip to content

Commit

Permalink
host1x: debugfs_create_dir() can never return NULL
Browse files Browse the repository at this point in the history
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
  • Loading branch information
Greg Kroah-Hartman authored and Thierry Reding committed Jun 13, 2019
1 parent f3b0d87 commit eb7cf94
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/gpu/host1x/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,6 @@ static void host1x_debugfs_init(struct host1x *host1x)
{
struct dentry *de = debugfs_create_dir("tegra-host1x", NULL);

if (!de)
return;

/* Store the created entry */
host1x->debugfs = de;

Expand Down

0 comments on commit eb7cf94

Please sign in to comment.