mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
scsi: myrb: Remove dead code
* reported by Coverity ID1602240* ldev_info is always true, therefore the branch statement is never called. Fixes:081ff398c5("scsi: myrb: Add Mylex RAID controller (block interface)") Cc: Hannes Reinecke <hare@kernel.org> Cc: James E.J. Bottomley <James.Bottomley@HansenPartnership.com> Cc: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Ariel Otilibili <ariel.otilibili-anieli@eurecom.fr> Link: https://lore.kernel.org/r/20241213225852.62741-2-ariel.otilibili-anieli@eurecom.fr Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
ad7c3c0cb8
commit
850f814b01
|
|
@ -1627,8 +1627,6 @@ static int myrb_ldev_sdev_init(struct scsi_device *sdev)
|
|||
enum raid_level level;
|
||||
|
||||
ldev_info = cb->ldev_info_buf + ldev_num;
|
||||
if (!ldev_info)
|
||||
return -ENXIO;
|
||||
|
||||
sdev->hostdata = kzalloc(sizeof(*ldev_info), GFP_KERNEL);
|
||||
if (!sdev->hostdata)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user