Re: [PATCH] [SCSI] pm8001: fix endian issue with code optimization.

Dan Carpenter
2012-03-07T17:37:52Z

[-- Attachment #1: Type: text/plain, Size: 433 bytes --]

On Wed, Mar 07, 2012 at 10:54:17PM +0530, santosh prasad nayak wrote:
> static void process_one_iomb(struct pm8001_hba_info *pm8001_ha, void *piomb)
> {
> - u32 pHeader = (u32)*(u32 *)piomb;
> - u8 opc = (u8)(pHeader & 0xFFF);
> + __le32 pHeader = (__le32)*(__le32 *)piomb;
^^^^^^^^
You could drop this cast, "*(__le32 *)piomb" is already an __le32
data type.

regards,
dan carpenter

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]