xen: make use of xenbus_read_unsigned() in xen-netback
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:22 +0000 (13:55 +0100)
commitf95842e7a9f235ef3b7d6d4b70fee2244149f1e7
tree6a7ac56dd31f72dfd48e563d0b72bb7990441b58
parent81362c6f159dcb59fadd60927aa00497d715ca80
xen: make use of xenbus_read_unsigned() in xen-netback

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

Cc: wei.liu2@citrix.com
Cc: paul.durrant@citrix.com
Cc: netdev@vger.kernel.org
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: David Vrabel <david.vrabel@citrix.com>
drivers/net/xen-netback/xenbus.c