From: Jens Axboe Date: Tue, 19 Jun 2018 16:12:51 +0000 (-0600) Subject: sata_fsl: remove dead code in tag retrieval X-Git-Tag: v4.19~632^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb36333de4bfba57fa6f8f88052e53180d54708e;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Tejun Heo --- diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c index bb5ec5f..4dc528b 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;