net/memif: remove pointer deference before null check
authorWeiguo Li <liwg06@foxmail.com>
Wed, 9 Feb 2022 07:39:34 +0000 (15:39 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 9 Feb 2022 17:50:50 +0000 (18:50 +0100)
commitb6c0f464affcf0ec6fcf0a26e517692dc08244f4
tree0c328fe91319373230b979cccdf8590e72503aad
parent3e97fa671dee32ea2689eb18f868d9086613cc1b
net/memif: remove pointer deference before null check

There are duplicates of assignment here, the one before null check
may cause a null pointer deference, so remove the previous one.

Fixes: 09c7e63a71f9 ("net/memif: introduce memory interface PMD")
Cc: stable@dpdk.org
Signed-off-by: Weiguo Li <liwg06@foxmail.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/memif/memif_socket.c