summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2011-11-09 06:21:08 +0000
committerWolfgang Denk <wd@denx.de>2011-11-16 20:53:18 +0100
commita4941bdc240fcb5a722033b32e17f1c0245a4bd5 (patch)
tree919d1c199624caa6ab44c959c559be223878f5b5 /drivers
parent79b05d59ade88a87a7d8a314f1ef4049b6cdde1d (diff)
downloadu-boot-imx-a4941bdc240fcb5a722033b32e17f1c0245a4bd5.zip
u-boot-imx-a4941bdc240fcb5a722033b32e17f1c0245a4bd5.tar.gz
u-boot-imx-a4941bdc240fcb5a722033b32e17f1c0245a4bd5.tar.bz2
drivers/block/ahci.c: Fix GCC 4.6 build warning
Fix: ahci.c: In function 'ata_scsiop_read10': ahci.c:564:6: warning: variable 'lba' set but not used [-Wunused-but-set-variable] Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/ahci.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c
index 015b341..7b2ec50 100644
--- a/drivers/block/ahci.c
+++ b/drivers/block/ahci.c
@@ -561,12 +561,9 @@ static int ata_scsiop_inquiry(ccb *pccb)
*/
static int ata_scsiop_read10(ccb * pccb)
{
- u64 lba = 0;
u32 len = 0;
u8 fis[20];
- lba = (((u64) pccb->cmd[2]) << 24) | (((u64) pccb->cmd[3]) << 16)
- | (((u64) pccb->cmd[4]) << 8) | ((u64) pccb->cmd[5]);
len = (((u32) pccb->cmd[7]) << 8) | ((u32) pccb->cmd[8]);
/* For 10-byte and 16-byte SCSI R/W commands, transfer