1
0
Fork 0

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
alistair/sunxi64-5.4-dsi
Greg Kroah-Hartman 2019-06-13 13:45:22 +02:00 committed by Thierry Reding
parent f3b0d8793c
commit eb7cf945a8
1 changed files with 0 additions and 3 deletions

View File

@ -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;