]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5bc52817db4dffd970b98d9a5281ce25924dc9c6
tree8d0deb9c42e7411034b940f31e06b4b8c2310023
parent9805ed424a6941ba3707c92c736728d009a8d784
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