[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120307173751.GS22598@mwanda>
Date: Wed, 7 Mar 2012 20:37:52 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: santosh prasad nayak <santoshprasadnayak@...il.com>
Cc: Mark Salyzyn <mark_salyzyn@...atex.com>, wharms@....de,
lindar_liu <lindar_liu@...sh.com>,
James Bottomley <JBottomley@...allels.com>,
linux-scsi <linux-scsi@...r.kernel.org>,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
Jack Wang <jack_wang@...sh.com>
Subject: Re: [PATCH] [SCSI] pm8001: fix endian issue with code optimization.
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
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists