]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitc9aacc1a088383468cc065dfc9303c95e90b823d
tree046e98a1e3a46b2ad9be4fd4db4c6266a63868fc
parentcf64c3c5a79747da5a1f96a04190a0bfe3dd287d
[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