xen: make use of xenbus_read_unsigned() in xenbus
authorJuergen Gross <jgross@suse.com>
Mon, 31 Oct 2016 13:58:42 +0000 (14:58 +0100)
committerJuergen Gross <jgross@suse.com>
Mon, 7 Nov 2016 12:55:36 +0000 (13:55 +0100)
commit999c9af9e3a2535d9ad41182e93eb128e587eb84
tree06d9ceacd42148533c431960f0e32fd197a36ff3
parent4e81f1caa7ff77f7fd31bd31f84b1a0dcfc8184e
xen: make use of xenbus_read_unsigned() in xenbus

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

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