Skip to content

Commit 11d2498

Browse files
committed
Merge branch 'for-5.12/dax' into libnvdimm-fixes
Pick up dax compile fix.
2 parents a2948b1 + 9de82ca commit 11d2498

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/dax/bus.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,11 @@ static ssize_t do_id_store(struct device_driver *drv, const char *buf,
9090
list_add(&dax_id->list, &dax_drv->ids);
9191
} else
9292
rc = -ENOMEM;
93-
} else
94-
/* nothing to remove */;
93+
}
9594
} else if (action == ID_REMOVE) {
9695
list_del(&dax_id->list);
9796
kfree(dax_id);
98-
} else
99-
/* dax_id already added */;
97+
}
10098
mutex_unlock(&dax_bus_lock);
10199

102100
if (rc < 0)

0 commit comments

Comments
 (0)