File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -5656,7 +5656,6 @@ static int pqi_aio_submit_io(struct pqi_ctrl_info *ctrl_info,
5656
5656
int rc ;
5657
5657
struct pqi_io_request * io_request ;
5658
5658
struct pqi_aio_path_request * request ;
5659
- struct pqi_scsi_dev * device ;
5660
5659
5661
5660
io_request = pqi_alloc_io_request (ctrl_info , scmd );
5662
5661
if (!io_request )
@@ -5676,9 +5675,8 @@ static int pqi_aio_submit_io(struct pqi_ctrl_info *ctrl_info,
5676
5675
request -> command_priority = io_high_prio ;
5677
5676
put_unaligned_le16 (io_request -> index , & request -> request_id );
5678
5677
request -> error_index = request -> request_id ;
5679
- device = scmd -> device -> hostdata ;
5680
- if (!pqi_is_logical_device (device ) && ctrl_info -> multi_lun_device_supported )
5681
- put_unaligned_le64 (((scmd -> device -> lun ) << 8 ), & request -> lun_number );
5678
+ if (!raid_bypass && ctrl_info -> multi_lun_device_supported )
5679
+ put_unaligned_le64 (scmd -> device -> lun << 8 , & request -> lun_number );
5682
5680
if (cdb_length > sizeof (request -> cdb ))
5683
5681
cdb_length = sizeof (request -> cdb );
5684
5682
request -> cdb_length = cdb_length ;
You can’t perform that action at this time.
0 commit comments