Skip to content

Commit

Permalink
quick: Removing code setting the drive-type after fill_Drive_Info_Dat…
Browse files Browse the repository at this point in the history
…a in uscsi_helper

Removing this code as fill_Drive_Info_Data will have already set the drive type.

Signed-off-by: Tyler Erickson <[email protected]>
  • Loading branch information
vonericsen committed Sep 10, 2024
1 parent 70924bb commit 739c0d6
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/uscsi_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,31 +242,6 @@ eReturnValues get_Device(const char *filename, tDevice *device)
}
//fill in the device info
ret = fill_Drive_Info_Data(device);

//set the drive type now
switch (device->drive_info.interface_type)
{
case IDE_INTERFACE:
case USB_INTERFACE:
device->drive_info.drive_type = ATA_DRIVE;
break;
case NVME_INTERFACE:
device->drive_info.drive_type = NVME_DRIVE;
break;
case SCSI_INTERFACE:
if (0 == strncmp(device->drive_info.T10_vendor_ident, "ATA", 3))
{
device->drive_info.drive_type = ATA_DRIVE;
}
else
{
device->drive_info.drive_type = SCSI_DRIVE;
}
break;
default:
device->drive_info.drive_type = UNKNOWN_DRIVE;
break;
}
}

return ret;
Expand Down

0 comments on commit 739c0d6

Please sign in to comment.