// ModeSense6 command is defined in [SCSI2Spec-Page151]\r
//\r
ModeSenseCmd.OpCode = USB_SCSI_MODE_SENSE6_OPCODE;\r
- ModeSenseCmd.Lun = USB_BOOT_LUN (UsbMass->Lun);\r
+ ModeSenseCmd.Lun = (UINT8) USB_BOOT_LUN (UsbMass->Lun);\r
ModeSenseCmd.PageCode = 0x3F;\r
ModeSenseCmd.AllocateLen = (UINT8) sizeof (USB_SCSI_MODE_SENSE6_PARA_HEADER);\r
\r
// devices support this command, so have a try here.\r
//\r
if (!EFI_ERROR (Status)) {\r
- Media->ReadOnly = (ModeParaHeader.DevicePara & 0x80) ? TRUE : FALSE;\r
+ Media->ReadOnly = (BOOLEAN) ((ModeParaHeader.DevicePara & 0x80) ? TRUE : FALSE);\r
}\r
\r
return Status;\r