OSDN Git Service

memory: tegra: Delete dead debugfs checking code
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 9 Jun 2021 09:55:25 +0000 (12:55 +0300)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Thu, 10 Jun 2021 07:18:15 +0000 (09:18 +0200)
commitc7c65703260c88a3e4d7387b2d03023c3625c6d4
tree022a0bd6eeb979baebc158ef8ad08842274e8a54
parent393d66fd2cacba3e6aa95d7bb38790bfb7b1cc3a
memory: tegra: Delete dead debugfs checking code

The debugfs_create_dir() function does not return NULL, it returns error
pointers.  But in normal situations like this where the caller is not
dereferencing "emc->debugfs.root" then we are not supposed to check the
return.  So instead of fixing these checks, we should delete them.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YMCQDTSyG8UuQoh0@mwanda
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/memory/tegra/tegra124-emc.c
drivers/memory/tegra/tegra20-emc.c
drivers/memory/tegra/tegra210-emc-core.c
drivers/memory/tegra/tegra30-emc.c