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

dmaengine: idxd: Remove unused status variable in irq_process_work_list()

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>

authored by

Nathan Chancellor and committed by
Vinod Koul
53cbf462 e9c5b0b5

-2
-2
drivers/dma/idxd/irq.c
··· 252 252 spin_unlock_irqrestore(&irq_entry->list_lock, flags); 253 253 254 254 list_for_each_entry(desc, &flist, list) { 255 - u8 status = desc->completion->status & DSA_COMP_STATUS_MASK; 256 - 257 255 /* 258 256 * Check against the original status as ABORT is software defined 259 257 * and 0xff, which DSA_COMP_STATUS_MASK can mask out.