summaryrefslogtreecommitdiff
path: root/drivers/block/xen-blkback/xenbus.c
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-05-12 16:19:23 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-05-12 17:55:47 -0400
commit03e0edf946a08f498788bb6e8ab58453d98f25b9 (patch)
treec2e849aa122c4428be3b4faaeb416dafb9376e11 /drivers/block/xen-blkback/xenbus.c
parent41ca4d388560d2048c7b64ff5ca7dc3bac0d0812 (diff)
xen/blkback: Checkpatch.pl recommend against multiple assigments.
CHECK: multiple assignments should be avoided Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/block/xen-blkback/xenbus.c')
-rw-r--r--drivers/block/xen-blkback/xenbus.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c
index 5d2bbf6240c8..ba8d30662d19 100644
--- a/drivers/block/xen-blkback/xenbus.c
+++ b/drivers/block/xen-blkback/xenbus.c
@@ -538,7 +538,8 @@ static void backend_changed(struct xenbus_watch *watch,
err = vbd_create(be->blkif, handle, major, minor,
(NULL == strchr(be->mode, 'w')), cdrom);
if (err) {
- be->major = be->minor = 0;
+ be->major = 0;
+ be->minor = 0;
xenbus_dev_fatal(dev, err, "creating vbd structure");
return;
}
@@ -546,7 +547,8 @@ static void backend_changed(struct xenbus_watch *watch,
err = xenvbd_sysfs_addif(dev);
if (err) {
vbd_free(&be->blkif->vbd);
- be->major = be->minor = 0;
+ be->major = 0;
+ be->minor = 0;
xenbus_dev_fatal(dev, err, "creating sysfs entries");
return;
}