Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jens Axboe and committed by
Tejun Heo
eb36333d d3543b4d

-6
-6
drivers/ata/sata_fsl.c
··· 395 395 { 396 396 /* We let libATA core do actual (queue) tag allocation */ 397 397 398 - /* all non NCQ/queued commands should have tag#0 */ 399 - if (ata_tag_internal(tag)) { 400 - DPRINTK("mapping internal cmds to tag#0\n"); 401 - return 0; 402 - } 403 - 404 398 if (unlikely(tag >= SATA_FSL_QUEUE_DEPTH)) { 405 399 DPRINTK("tag %d invalid : out of range\n", tag); 406 400 return 0;