]> Git Repo - linux.git/commitdiff
ata/acard_ahci: remove unused variable n_elem
authorAlex Shi <[email protected]>
Tue, 21 Jan 2020 08:48:49 +0000 (16:48 +0800)
committerJens Axboe <[email protected]>
Wed, 22 Jan 2020 17:32:51 +0000 (10:32 -0700)
No one care the varible acard_ahci in func acard_ahci_qc_prep.
better to remove it.

Signed-off-by: Alex Shi <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Jens Axboe <[email protected]>
drivers/ata/acard-ahci.c

index 46dc54d18f0b7ca13a542cef88fb798c4b1023b1..2a04e8abd3977ddbd677bbcd172e9311a8759dc2 100644 (file)
@@ -218,7 +218,6 @@ static enum ata_completion_errors acard_ahci_qc_prep(struct ata_queued_cmd *qc)
        void *cmd_tbl;
        u32 opts;
        const u32 cmd_fis_len = 5; /* five dwords */
-       unsigned int n_elem;
 
        /*
         * Fill in command table information.  First, the header,
@@ -232,9 +231,8 @@ static enum ata_completion_errors acard_ahci_qc_prep(struct ata_queued_cmd *qc)
                memcpy(cmd_tbl + AHCI_CMD_TBL_CDB, qc->cdb, qc->dev->cdb_len);
        }
 
-       n_elem = 0;
        if (qc->flags & ATA_QCFLAG_DMAMAP)
-               n_elem = acard_ahci_fill_sg(qc, cmd_tbl);
+               acard_ahci_fill_sg(qc, cmd_tbl);
 
        /*
         * Fill in command slot information.
This page took 0.056642 seconds and 4 git commands to generate.