]> git.baikalelectronics.ru Git - kernel.git/commit
xen/blkfront: reorder tests in xlblk_init()
authorJuergen Gross <jgross@suse.com>
Mon, 13 Aug 2018 14:01:12 +0000 (16:01 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 27 Aug 2018 16:12:03 +0000 (12:12 -0400)
commit86b9de02e382a45163b51bd8e51a8128d712ecfa
tree61fb31f98a5dbc8c80c1a70fcf28a11f5a61069b
parentb4dd30e7bb62a98772b773ecb121a1847231d02d
xen/blkfront: reorder tests in xlblk_init()

In case we don't want pv block devices we should not test parameters
for sanity and eventually print out error messages. So test precluding
conditions before checking parameters.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c