netdevsim: delete unnecessary debugfs checking
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 9 Jun 2021 09:56:45 +0000 (12:56 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jun 2021 21:16:39 +0000 (14:16 -0700)
commit4e744cb8126deac52257219fad754614a61989da
tree7888c85b0b00954c99fa30b5d0be8b33a91a9d1e
parent711d1dee1c86294b43e33202fb1eabd7e524ed9a
netdevsim: delete unnecessary debugfs checking

In normal situations where the driver doesn't dereference
"nsim_node->ddir" or "nsim_node->rate_parent" itself then we are not
supposed to check the return from debugfs functions.  In the case of
debugfs_create_dir() the check was wrong as well because it doesn't
return NULL, it returns error pointers.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/dev.c