Assemble: correctly capture error from ->write_bitmap

else 'err' might be undefined.

Signed-off-by: NeilBrown <neilb@suse.com>
This commit is contained in:
NeilBrown 2015-08-05 14:55:31 +10:00
parent 380487fdc9
commit d80f7aa9a1
1 changed files with 1 additions and 1 deletions

View File

@ -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);