power: fix error log on guest message polling
authorDavid Hunt <david.hunt@intel.com>
Mon, 25 Nov 2019 15:00:42 +0000 (15:00 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 25 Nov 2019 23:29:24 +0000 (00:29 +0100)
commit19802aaf7ca296c8d4cfbb0583869899f4118a74
tree50c4e592a17cad233f2327821d8061976de14af2
parent06710448c98efbc8986866f7bde6f6df1f5316c1
power: fix error log on guest message polling

Should be passing errno rather than ret, which could be negative.

Coverity issue: 350362
Fixes: 9dc843eb273b ("power: extend guest channel API for reading")
Cc: stable@dpdk.org
Signed-off-by: David Hunt <david.hunt@intel.com>
lib/librte_power/guest_channel.c