xen: make use of xenbus_read_unsigned() in xen-netfront
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:24 +0000 (13:55 +0100)
commit2890ea5c13321d26732c4520649681965480ee1c
tree87fd277c70a2d48c44b9efd17f7a9fdd46b2c510
parentf95842e7a9f235ef3b7d6d4b70fee2244149f1e7
xen: make use of xenbus_read_unsigned() in xen-netfront

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: netdev@vger.kernel.org
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: David Vrabel <david.vrabel@citrix.com>
drivers/net/xen-netfront.c