net/bnxt: fix error handling in xstats
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Fri, 11 Oct 2019 05:16:44 +0000 (10:46 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:09 +0000 (16:43 +0200)
commit9bc556e3ecec6c1127c6d6c99660742315c59282
treee00f9866f0780d650ecdef64db6ce9d5f01f22f9
parent2f225d65423bbd7da67244cdad3a20eb29d67e1f
net/bnxt: fix error handling in xstats

Add missing return instead of setting the error status in case of error.

Fixes: bfb9c2260be2 ("net/bnxt: support xstats get/reset")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_stats.c