re: [SCSI] mpt fusion: Add support for ATTO 4LD: Rebranded LSI 53C1030

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Eric Moore,

The patch 232f08fc82b1: "[SCSI] mpt fusion: Add support for ATTO 4LD:
Rebranded LSI 53C1030" from Aug 14, 2007, leads to the following
static checker warning:

	drivers/message/fusion/mptbase.c:5527 mpt_GetScsiPortSettings()
	warn: was hexadecimal intended '10'

drivers/message/fusion/mptbase.c
  5522                                    if (ATTOFlags & ATTOFLAG_TAGGED)
  5523                                      data |= (MPI_SCSIPORTPAGE2_DEVICE_TAG_QUEUE_ENABLE);
  5524                                    if (!(ATTOFlags & ATTOFLAG_WIDE_ENB))
  5525                                      data |= (MPI_SCSIPORTPAGE2_DEVICE_WIDE_DISABLE);
                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
MPI_SCSIPORTPAGE2_DEVICE_WIDE_DISABLE is 0x10.

  5526  
  5527                                    data = (data << 16) | (pdevice->Period << 8) | 10;
                                                                                         ^^

"data" is is a bit field except for the last "10" here.  Maybe it should
be 0x10 instead of 10.  But then we already set 0x10 on the line before
so this code is not clear.

  5528                                    ioc->spi_data.nvram[ii] = data;
  5529                                  }

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux