diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-06-19 18:12:51 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-06-19 18:30:27 +0200 |
commit | eb36333de4bfba57fa6f8f88052e53180d54708e (patch) | |
tree | 25bd15a045275dea570bfacb3993e5f1f374adff /drivers/ata/sata_fsl.c | |
parent | sata_fsl: convert to command iterator (diff) | |
download | linux-eb36333de4bfba57fa6f8f88052e53180d54708e.tar.xz linux-eb36333de4bfba57fa6f8f88052e53180d54708e.zip |
sata_fsl: remove dead code in tag retrieval
We can never pass in the internal tag to this helper, it'll
always be the hardware tag. So there's no need to check and
do an internal translation of that tag.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/sata_fsl.c')
-rw-r--r-- | drivers/ata/sata_fsl.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c index bb5ec5f71e73..4dc528bf8e85 100644 --- a/drivers/ata/sata_fsl.c +++ b/drivers/ata/sata_fsl.c @@ -395,12 +395,6 @@ static inline unsigned int sata_fsl_tag(unsigned int tag, { /* We let libATA core do actual (queue) tag allocation */ - /* all non NCQ/queued commands should have tag#0 */ - if (ata_tag_internal(tag)) { - DPRINTK("mapping internal cmds to tag#0\n"); - return 0; - } - if (unlikely(tag >= SATA_FSL_QUEUE_DEPTH)) { DPRINTK("tag %d invalid : out of range\n", tag); return 0; |