]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
drivers/block/ahci.c: Fix GCC 4.6 build warning
authorKumar Gala <galak@kernel.crashing.org>
Wed, 9 Nov 2011 06:21:08 +0000 (06:21 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 16 Nov 2011 19:53:18 +0000 (20:53 +0100)
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>
drivers/block/ahci.c

index 015b341d9e0d38345fd67c4ee0d24f6c65181b8e..7b2ec505e189455d86ab8b7cfafb71266290980d 100644 (file)
@@ -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