Assemble: correctly capture error from ->write_bitmap
else 'err' might be undefined. Signed-off-by: NeilBrown <neilb@suse.com>
This commit is contained in:
parent
380487fdc9
commit
d80f7aa9a1
|
@ -639,7 +639,7 @@ static int load_devices(struct devs *devices, char *devmap,
|
|||
err = 0;
|
||||
else if (strcmp(c->update, "home-cluster") == 0) {
|
||||
tst->cluster_name = c->homecluster;
|
||||
tst->ss->write_bitmap(tst, dfd, NameUpdate);
|
||||
err = tst->ss->write_bitmap(tst, dfd, NameUpdate);
|
||||
} else if (strcmp(c->update, "nodes") == 0) {
|
||||
tst->nodes = c->nodes;
|
||||
err = tst->ss->write_bitmap(tst, dfd, NodeNumUpdate);
|
||||
|
|
Loading…
Reference in New Issue