summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/cavium
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-10-12 17:44:06 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2017-11-03 21:53:30 +0800
commit2f1fedca9b97e87413db52c54745e9cc28b70169 (patch)
tree72ca81fde2296eb9d135edb7fb8774691e7bc83c /drivers/crypto/cavium
parent27b43fd95b144484713855c6d4fe832d22e48838 (diff)
downloadtalos-op-linux-2f1fedca9b97e87413db52c54745e9cc28b70169.tar.gz
talos-op-linux-2f1fedca9b97e87413db52c54745e9cc28b70169.zip
crypto: cavium - clean up clang warning on unread variable offset
The variable offset is being assigned and not being used; it should be passed as the 2nd argument to call to function nitrox_write_csr but has been omitted. Fix this. Cleans up clang warning: Value stored to 'offset' is never read Fixes: 14fa93cdcd9b ("crypto: cavium - Add support for CNN55XX adapters.") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/cavium')
-rw-r--r--drivers/crypto/cavium/nitrox/nitrox_hal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/cavium/nitrox/nitrox_hal.c b/drivers/crypto/cavium/nitrox/nitrox_hal.c
index f0655f82fa7d..73275ce6a668 100644
--- a/drivers/crypto/cavium/nitrox/nitrox_hal.c
+++ b/drivers/crypto/cavium/nitrox/nitrox_hal.c
@@ -126,7 +126,7 @@ void nitrox_config_pkt_input_rings(struct nitrox_device *ndev)
* size and interrupt threshold.
*/
offset = NPS_PKT_IN_INSTR_BADDRX(i);
- nitrox_write_csr(ndev, NPS_PKT_IN_INSTR_BADDRX(i), cmdq->dma);
+ nitrox_write_csr(ndev, offset, cmdq->dma);
/* configure ring size */
offset = NPS_PKT_IN_INSTR_RSIZEX(i);
OpenPOWER on IntegriCloud