]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
octeontx2-af: debugfs: delete dead code
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 2 Dec 2020 06:57:02 +0000 (09:57 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 2 Dec 2020 20:00:55 +0000 (12:00 -0800)
commit2ce5a30711abdb690f916d21cb524021e2368d41
tree04e2ec4eba4f106edcbeee9a12906398c7fc0582
parent59f96cf6ba88c64278c35d11957a36faaca33de7
octeontx2-af: debugfs: delete dead code

These debugfs never return NULL so all this code will never be run.

In the normal case, (and in this case particularly), the debugfs
functions are not supposed to be checked for errors so all this error
checking code can be safely deleted.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X8c6vpapJDYI2eWI@mwanda
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c