]> git.baikalelectronics.ru Git - kernel.git/commit
host1x: debugfs_create_dir() can never return NULL
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Jun 2019 11:45:22 +0000 (13:45 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Jun 2019 16:23:38 +0000 (18:23 +0200)
commit6d6678045310de2f326c40b4933e82cdfd7d0c89
treedb353d98911bf9238dc1ffa568381638bd1f62cf
parentf866c21171c8ac57e14af67ddcbc008926b4335d
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>
drivers/gpu/host1x/debug.c