net: remove superfluous check

This commit is contained in:
Thomas Schoebel-Theuer 2022-07-27 10:17:30 +02:00
parent 3a638f0a79
commit 53e9adb326
1 changed files with 0 additions and 5 deletions

View File

@ -102,11 +102,6 @@ int mars_recv_dent_list(struct mars_global *global, struct mars_socket *sock)
struct list_head *hash_anchor;
unsigned int hash;
if (!dent)
return -ENOMEM;
//MARS_IO("\n");
INIT_LIST_HEAD(&dent->dent_link);
INIT_LIST_HEAD(&dent->dent_hash_link);
INIT_LIST_HEAD(&dent->brick_list);