Dan Williams f02716db95 libnvdimm: use devm_add_action_or_reset()
Clean up needless calls to the action routine by letting
devm_add_action_or_reset() call it automatically.  This does cause the
disk to registered and immediately unregistered when a memory allocation
fails, but the block layer should be prepared for such an event.

Reported-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2016-06-15 14:59:17 -07:00
..
2016-05-21 12:22:41 -07:00
2016-05-20 22:02:57 -07:00
2015-06-24 21:24:10 -04:00
2016-05-20 22:02:57 -07:00
2016-05-20 22:02:57 -07:00
2016-05-20 22:02:56 -07:00