]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ethernet: mtk_eth_soc: delete some dead code
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 17 Dec 2021 07:10:37 +0000 (10:10 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 18 Dec 2021 03:24:38 +0000 (19:24 -0800)
commitab9d0e2171be56bb3bcd0fe4bd8ae5d2f24e5a80
tree4a8db06e13cfb43279f4b12757188b2bd5cd35e9
parentddfbe18da55cbea41aaf57d442228edbd6cbbff1
net: ethernet: mtk_eth_soc: delete some dead code

The debugfs_create_dir() function never returns NULL.  It does return
error pointers but in normal situations like this there is no need to
check for errors.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20211217071037.GE26548@kili
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c