xen/manage: correct return value check on xenbus_scanf()
authorJan Beulich <JBeulich@suse.com>
Sat, 7 Oct 2017 22:37:47 +0000 (22:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2017 09:06:30 +0000 (10:06 +0100)
commitfff544c8cf6848c0ac1293d0f2e2b64629a64604
tree849e7a08a5df0e2dd28e211d72ccd2ca6150a5d8
parent762d0762b9bb055962526c5fdd71a28d371c3df3
xen/manage: correct return value check on xenbus_scanf()

[ Upstream commit 4fed1b125eb6252bde478665fc05d4819f774fa8 ]

A negative return value indicates an error; in fact the function at
present won't ever return zero.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/xen/manage.c