dmaengine: idxd: Remove unused status variable in irq_process_work_list()
authorNathan Chancellor <nathan@kernel.org>
Mon, 2 Aug 2021 17:58:20 +0000 (10:58 -0700)
committerVinod Koul <vkoul@kernel.org>
Fri, 6 Aug 2021 13:45:58 +0000 (19:15 +0530)
status is no longer used within this block:

drivers/dma/idxd/irq.c:255:6: warning: unused variable 'status'
[-Wunused-variable]
                u8 status = desc->completion->status & DSA_COMP_STATUS_MASK;
                   ^
1 warning generated.

Fixes: b60bb6e2bfc1 ("dmaengine: idxd: fix abort status check")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20210802175820.3153920-1-nathan@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/irq.c

index 65dc7bb..91e46ca 100644 (file)
@@ -252,8 +252,6 @@ static int irq_process_work_list(struct idxd_irq_entry *irq_entry,
        spin_unlock_irqrestore(&irq_entry->list_lock, flags);
 
        list_for_each_entry(desc, &flist, list) {
-               u8 status = desc->completion->status & DSA_COMP_STATUS_MASK;
-
                /*
                 * Check against the original status as ABORT is software defined
                 * and 0xff, which DSA_COMP_STATUS_MASK can mask out.