dmaengine: ioat: remove unused ‘is_raid_device’
In ioat3_dma_probe(), variable ‘is_raid_device’ is initialized but never used, which leads to warning with W=1 drivers/dma/ioat/init.c: In function ‘ioat3_dma_probe’: drivers/dma/ioat/init.c:1084:7: warning: variable ‘is_raid_device’ set but not used [-Wunused-but-set-variable] bool is_raid_device = false; So remove it. Cc: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
@@ -1071,7 +1071,6 @@ static int ioat3_dma_probe(struct ioatdma_device *ioat_dma, int dca)
|
|||||||
struct dma_device *dma;
|
struct dma_device *dma;
|
||||||
struct dma_chan *c;
|
struct dma_chan *c;
|
||||||
struct ioatdma_chan *ioat_chan;
|
struct ioatdma_chan *ioat_chan;
|
||||||
bool is_raid_device = false;
|
|
||||||
int err;
|
int err;
|
||||||
u16 val16;
|
u16 val16;
|
||||||
|
|
||||||
@@ -1095,7 +1094,6 @@ static int ioat3_dma_probe(struct ioatdma_device *ioat_dma, int dca)
|
|||||||
ioat_dma->cap &= ~(IOAT_CAP_XOR|IOAT_CAP_PQ);
|
ioat_dma->cap &= ~(IOAT_CAP_XOR|IOAT_CAP_PQ);
|
||||||
|
|
||||||
if (ioat_dma->cap & IOAT_CAP_XOR) {
|
if (ioat_dma->cap & IOAT_CAP_XOR) {
|
||||||
is_raid_device = true;
|
|
||||||
dma->max_xor = 8;
|
dma->max_xor = 8;
|
||||||
|
|
||||||
dma_cap_set(DMA_XOR, dma->cap_mask);
|
dma_cap_set(DMA_XOR, dma->cap_mask);
|
||||||
@@ -1106,7 +1104,6 @@ static int ioat3_dma_probe(struct ioatdma_device *ioat_dma, int dca)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ioat_dma->cap & IOAT_CAP_PQ) {
|
if (ioat_dma->cap & IOAT_CAP_PQ) {
|
||||||
is_raid_device = true;
|
|
||||||
|
|
||||||
dma->device_prep_dma_pq = ioat_prep_pq;
|
dma->device_prep_dma_pq = ioat_prep_pq;
|
||||||
dma->device_prep_dma_pq_val = ioat_prep_pq_val;
|
dma->device_prep_dma_pq_val = ioat_prep_pq_val;
|
||||||
|
|||||||
Reference in New Issue
Block a user