diff options
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2013-04-16 11:22:36 -0400 |
---|---|---|
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2013-04-16 15:13:41 -0400 |
commit | 422ef0c7c81934c3344e1623d2dcfda5fa2fab8d (patch) | |
tree | ba37240a322d81044a396e32e98bec9fcc534f9f /drivers/block/nvme-scsi.c | |
parent | 063cc6d5591ea9c0631b81ac5c7b829d99738b2f (diff) |
NVMe: Don't fail initialisation unnecessarily
The nvme_dev_add() function currently returns the last error code that it
saw, which (if everything else succeeds) happens to be the result of an
optional command, so it can legitimately fail. Looking at the error path
more closely reveals that we should return success from this function,
even if no device namespaces are added. So once the queues are created
and the device has responded to Identify, make sure that this function
succeeds.
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Acked-by: Keith Busch <keith.busch@intel.com>
Diffstat (limited to 'drivers/block/nvme-scsi.c')
0 files changed, 0 insertions, 0 deletions