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)
commit4bcddbae019df2614ea36976ba3d36313f93c6d3
tree61fb31f98a5dbc8c80c1a70fcf28a11f5a61069b
parenta46b53672b2c2e3770b38a4abf90d16364d2584b
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