From: Greg Kroah-Hartman Date: Thu, 13 Jun 2019 11:45:22 +0000 (+0200) Subject: host1x: debugfs_create_dir() can never return NULL X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=eb7cf945a8dac8603e6d0759023e9b6cfed7a008;p=linux.git 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 Cc: dri-devel@lists.freedesktop.org Cc: linux-tegra@vger.kernel.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/host1x/debug.c b/drivers/gpu/host1x/debug.c index 329e4a3d8ae7b..6c5ee3e39dc62 100644 --- a/drivers/gpu/host1x/debug.c +++ b/drivers/gpu/host1x/debug.c @@ -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;