net/enic: fix assignment
authorAaron Conole <aconole@redhat.com>
Tue, 26 Sep 2017 18:53:27 +0000 (14:53 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 12 Oct 2017 00:52:49 +0000 (01:52 +0100)
commite735c8e20b9c727fd60f9ae1fa86114594c6ec76
tree1ff02b1078474686d18ef58504c5abe106dd1b97
parent32d1206e3c7124dde17c576e14f26a30b5f6edf6
net/enic: fix assignment

As it stands, the existing assignment to mbuf has no effect outside of
the function.  Prior to this change, the mbuf argument would contain
an invalid address, but it would not be null.  After this change, the
caller gets a null mbuf back.

Fixes: 947d860c821f ("enic: improve Rx performance")
Cc: stable@dpdk.org
Signed-off-by: Aaron Conole <aconole@redhat.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_main.c