Fix ARM compilation issue.
X-MFC: 237260
This commit is contained in:
parent
ea37f51942
commit
0896d52530
@ -330,11 +330,13 @@ cam_strvis(char *dst, const char *src, int srclen, int dstlen)
|
||||
const char *
|
||||
mfi_pd_inq_string(struct mfi_pd_info *info)
|
||||
{
|
||||
struct scsi_inquiry_data *inq_data;
|
||||
struct scsi_inquiry_data iqd, *inq_data = &iqd;
|
||||
char vendor[16], product[48], revision[16], rstr[12], serial[SID_VENDOR_SPECIFIC_0_SIZE];
|
||||
static char inq_string[64];
|
||||
|
||||
inq_data = (struct scsi_inquiry_data *)info->inquiry_data;
|
||||
memcpy(inq_data, info->inquiry_data,
|
||||
(sizeof (iqd) < sizeof (info->inquiry_data))?
|
||||
sizeof (iqd) : sizeof (info->inquiry_data));
|
||||
if (SID_QUAL_IS_VENDOR_UNIQUE(inq_data))
|
||||
return (NULL);
|
||||
if (SID_TYPE(inq_data) != T_DIRECT)
|
||||
|
Loading…
Reference in New Issue
Block a user