net/ring: remove unnecessary NULL check
authorMauricio Vasquez B <mauricio.vasquez@polito.it>
Wed, 2 Nov 2016 13:46:09 +0000 (08:46 -0500)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 7 Nov 2016 13:50:47 +0000 (14:50 +0100)
commitf74ea27bb5d4e6dd0db39629e4fefd0d1851f8b5
tree57544980356659ce719d048d4e5d8665d84730a1
parent25c62ca4eb0cb4bae0db9628ef343f246cc11820
net/ring: remove unnecessary NULL check

Coverity detected this as an issue because internals->data will never be NULL,
then the check is not necessary.

Coverity issue: 137873
Fixes: d082c0395bf6 ("ring: fix memory leak when detaching")

Signed-off-by: Mauricio Vasquez B <mauricio.vasquez@polito.it>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/ring/rte_eth_ring.c