[SCSI] megaraid_sas: check return value for megasas_get_pd_list()
authorHannes Reinecke <hare@suse.de>
Thu, 16 Jan 2014 10:25:36 +0000 (11:25 +0100)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:19:18 +0000 (10:19 -0700)
commit58968fc8fbb3869d9ec84d32b88b58b0423d6793
tree046e98a1e3a46b2ad9be4fd4db4c6266a63868fc
parent2f8bdfa84a0b814ef66701be1e5dbc88433676e1
[SCSI] megaraid_sas: check return value for megasas_get_pd_list()

When megasas_get_pd_list() fails we cannot detect any drives,
so we should be checking the return value accordingly.

[jejb: checkpatch fix]
Signed-off-by: Hannes Reinecke <hare@suse.de>
Acked-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/megaraid/megaraid_sas_base.c