↑ Collapse Diff ↑
...
 
@@ -1466,13 +1466,12 @@ static inline void pci_free_consistent_esx(struct pci_dev *pdev, size_t size,
1466 1466
 
#if (VMWARE_ESX_DDK_VERSION >= 60000)
1467 1467
 
static inline void bnx2i_int_to_scsilun_with_sec_lun_id(uint16_t lun,
1468 1468
 
							struct scsi_lun *scsi_lun,
1469 1469
 
							uint64_t sllid)
1470 1470
 
{
1471 1471
 
	if (sllid != VMKLNX_SCSI_INVALID_SECONDLEVEL_ID) {
1472
 
		VMK_ASSERT(lun <= 255); /* Max LUN supported is 255. */
1473 1472
 
		memset(scsi_lun, 0, 8);
1474 1473
 
		scsi_lun->scsi_lun[0] = (lun >> 8) & 0xFF;
1475 1474
 
		scsi_lun->scsi_lun[1] = lun & 0xFF;
1476 1475
 
		scsi_lun->scsi_lun[2] = (uint8_t)((sllid >> 56) & 0xFF); /* sllid msb */
1477 1476
 
		scsi_lun->scsi_lun[3] = (uint8_t)((sllid >> 48) & 0xFF);
1478 1477
 
		scsi_lun->scsi_lun[4] = (uint8_t)((sllid >> 40) & 0xFF);