]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
crypto: cavium - clean up clang warning on unread variable offset
authorColin Ian King <colin.king@canonical.com>
Thu, 12 Oct 2017 16:44:06 +0000 (17:44 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Nov 2017 13:53:30 +0000 (21:53 +0800)
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>
drivers/crypto/cavium/nitrox/nitrox_hal.c

index f0655f82fa7d9fccc7ae2c852d5008d4d2d2170c..73275ce6a6686ab5c7f18d7365693a27e1ebaa0e 100644 (file)
@@ -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);