]> www.infradead.org Git - users/jedix/linux-maple.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)
committerBob Liu <bob.liu@oracle.com>
Thu, 20 Oct 2016 08:00:57 +0000 (04:00 -0400)
commit7dae3a9e2a6e5ac47c62c579746285b4b5c0b14c
treeb3af2fb5e7d56745d0c3f0c04c279bbf99f43c3e
parentfa64f5240cb7ff85ecab42178c28a07a4179e1f5
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>
(cherry picked from commit ff595325ed556fb4b83af5b9ffd5c427c18405d7)
Signed-off-by: Bob Liu <bob.liu@oracle.com>
Orabug: 24820937
drivers/block/xen-blkfront.c