]> git.baikalelectronics.ru Git - kernel.git/commit
xen/manage: correct return value check on xenbus_scanf()
authorJan Beulich <JBeulich@suse.com>
Fri, 3 Feb 2017 08:54:05 +0000 (01:54 -0700)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 3 Feb 2017 16:26:40 +0000 (11:26 -0500)
commit5925faceacdf15b0ab33310051dd31980bdfde25
treeb01d18177269f4c15286400ad389564e1846636e
parent007538248caa358584ee1280dd1260ba99586026
xen/manage: correct return value check on xenbus_scanf()

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>
drivers/xen/manage.c