vhost: remove unneeded variable assignment
authorEmmanuel Roullit <emmanuel.roullit@gmail.com>
Tue, 24 Jan 2017 20:31:29 +0000 (21:31 +0100)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 30 Jan 2017 12:47:20 +0000 (13:47 +0100)
commit68759bbe73fe036c6fe1c3b61586ebb169686831
treef8788dea9c02e3e5ccb1a75d4834ca73e14a8ca5
parent5c1f70daafbca24fe10dc21afe44320e323d2f8f
vhost: remove unneeded variable assignment

Found with clang static analysis:
lib/librte_vhost/vhost_user.c:996:3: warning:
Value stored to 'ret' is never read
        ret = vhost_user_get_vring_base(dev, &msg.payload.state);
        ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lib/librte_vhost/vhost_user.c