diff options
author | Vinod Koul <vinod.koul@intel.com> | 2016-12-09 04:54:12 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-12-12 11:55:21 -0500 |
commit | 56c492f34110f85d6af3686df48755b85a912827 (patch) | |
tree | e267c0a20f2c91c3ee93e221d9906b40b3316ffb | |
parent | d07c9e1e212c9687f9198bfeba582e86cae3f6f9 (diff) |
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>
-rw-r--r-- | drivers/dma/ioat/init.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/dma/ioat/init.c b/drivers/dma/ioat/init.c index 015f7110b96d..a7af149e7ba2 100644 --- a/drivers/dma/ioat/init.c +++ b/drivers/dma/ioat/init.c | |||
@@ -1071,7 +1071,6 @@ static int ioat3_dma_probe(struct ioatdma_device *ioat_dma, int dca) | |||
1071 | struct dma_device *dma; | 1071 | struct dma_device *dma; |
1072 | struct dma_chan *c; | 1072 | struct dma_chan *c; |
1073 | struct ioatdma_chan *ioat_chan; | 1073 | struct ioatdma_chan *ioat_chan; |
1074 | bool is_raid_device = false; | ||
1075 | int err; | 1074 | int err; |
1076 | u16 val16; | 1075 | u16 val16; |
1077 | 1076 | ||
@@ -1095,7 +1094,6 @@ static int ioat3_dma_probe(struct ioatdma_device *ioat_dma, int dca) | |||
1095 | ioat_dma->cap &= ~(IOAT_CAP_XOR|IOAT_CAP_PQ); | 1094 | ioat_dma->cap &= ~(IOAT_CAP_XOR|IOAT_CAP_PQ); |
1096 | 1095 | ||
1097 | if (ioat_dma->cap & IOAT_CAP_XOR) { | 1096 | if (ioat_dma->cap & IOAT_CAP_XOR) { |
1098 | is_raid_device = true; | ||
1099 | dma->max_xor = 8; | 1097 | dma->max_xor = 8; |
1100 | 1098 | ||
1101 | dma_cap_set(DMA_XOR, dma->cap_mask); | 1099 | dma_cap_set(DMA_XOR, dma->cap_mask); |
@@ -1106,7 +1104,6 @@ static int ioat3_dma_probe(struct ioatdma_device *ioat_dma, int dca) | |||
1106 | } | 1104 | } |
1107 | 1105 | ||
1108 | if (ioat_dma->cap & IOAT_CAP_PQ) { | 1106 | if (ioat_dma->cap & IOAT_CAP_PQ) { |
1109 | is_raid_device = true; | ||
1110 | 1107 | ||
1111 | dma->device_prep_dma_pq = ioat_prep_pq; | 1108 | dma->device_prep_dma_pq = ioat_prep_pq; |
1112 | dma->device_prep_dma_pq_val = ioat_prep_pq_val; | 1109 | dma->device_prep_dma_pq_val = ioat_prep_pq_val; |