xen: make use of xenbus_read_unsigned() in xen-pciback
authorJuergen Gross <jgross@suse.com>
Mon, 31 Oct 2016 13:58:41 +0000 (14:58 +0100)
committerJuergen Gross <jgross@suse.com>
Mon, 7 Nov 2016 12:55:34 +0000 (13:55 +0100)
commit4e81f1caa7ff77f7fd31bd31f84b1a0dcfc8184e
tree8d0deb9c42e7411034b940f31e06b4b8c2310023
parenteaf46e181ec3cc3b6eafdbe8e30fb5a03ebbde68
xen: make use of xenbus_read_unsigned() in xen-pciback

Use xenbus_read_unsigned() instead of xenbus_scanf() when possible.
This requires to change the type of the read from int to unsigned,
but this case has been wrong before: negative values are not allowed
for the modified case.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/xen-pciback/xenbus.c