]> git.baikalelectronics.ru Git - kernel.git/commit
xen-blkfront: prefer xenbus_scanf() over xenbus_gather()
authorJan Beulich <JBeulich@suse.com>
Thu, 7 Jul 2016 08:05:46 +0000 (02:05 -0600)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 22 Jul 2016 12:23:45 +0000 (08:23 -0400)
commitc60b732b6f35166e94f4f43e00c4d7490aeccd4b
tree162b59688b4783ec48266ac153f4a2a9ed13eaa1
parentc6f802e12b6e858b675af03a65eadf7d0b1bce5d
xen-blkfront: prefer xenbus_scanf() over xenbus_gather()

... for single items being collected: It is more typesafe (as the
compiler can check format string and to-be-written-to variable match)
and requires one less parameter to be passed.

Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c