scsi: ignore errors from scsi_dh_add_device()
authorHannes Reinecke <hare@suse.de>
Tue, 1 Dec 2015 09:16:42 +0000 (10:16 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 2 Dec 2015 21:29:46 +0000 (16:29 -0500)
commit221255aee67ec1c752001080aafec0c4e9390d95
treef6bfe11bd7ed89e1c4ab05aa033b38b1e235d3f3
parent41f95dd2efd80a611c8566888fcdcb5d399ea474
scsi: ignore errors from scsi_dh_add_device()

device handler initialisation might fail due to a number of
reasons. But as device_handlers are optional this shouldn't
cause us to disable the device entirely.
So just ignore errors from scsi_dh_add_device().

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_sysfs.c