Skip to content

Commit 850f814

Browse files
Ariel Otilibilimartinkpetersen
authored andcommitted
scsi: myrb: Remove dead code
* reported by Coverity ID 1602240 * ldev_info is always true, therefore the branch statement is never called. Fixes: 081ff39 ("scsi: myrb: Add Mylex RAID controller (block interface)") Cc: Hannes Reinecke <[email protected]> Cc: James E.J. Bottomley <[email protected]> Cc: Martin K. Petersen <[email protected]> Signed-off-by: Ariel Otilibili <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent ad7c3c0 commit 850f814

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/scsi/myrb.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,8 +1627,6 @@ static int myrb_ldev_sdev_init(struct scsi_device *sdev)
16271627
enum raid_level level;
16281628

16291629
ldev_info = cb->ldev_info_buf + ldev_num;
1630-
if (!ldev_info)
1631-
return -ENXIO;
16321630

16331631
sdev->hostdata = kzalloc(sizeof(*ldev_info), GFP_KERNEL);
16341632
if (!sdev->hostdata)

0 commit comments

Comments
 (0)