Skip to content

Commit

Permalink
Merge branch 'for-5.12/dax' into libnvdimm-fixes
Browse files Browse the repository at this point in the history
Pick up dax compile fix.
  • Loading branch information
djbw committed Apr 10, 2021
2 parents a2948b1 + 9de82ca commit 11d2498
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/dax/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,11 @@ static ssize_t do_id_store(struct device_driver *drv, const char *buf,
list_add(&dax_id->list, &dax_drv->ids);
} else
rc = -ENOMEM;
} else
/* nothing to remove */;
}
} else if (action == ID_REMOVE) {
list_del(&dax_id->list);
kfree(dax_id);
} else
/* dax_id already added */;
}
mutex_unlock(&dax_bus_lock);

if (rc < 0)
Expand Down

0 comments on commit 11d2498

Please sign in to comment.