diff options
author | Corentin Labbe <clabbe.montjoie@gmail.com> | 2017-09-25 19:10:07 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-09-26 07:41:22 -0600 |
commit | 9979d545c93653770984806e9bfcec1df53a9d3d (patch) | |
tree | 893a0368b6540271dd7cf516aa5666451deec42c /drivers/block/cryptoloop.c | |
parent | d4478e92d6186ce37947a36994de407c27446266 (diff) | |
download | linux-9979d545c93653770984806e9bfcec1df53a9d3d.tar.gz linux-9979d545c93653770984806e9bfcec1df53a9d3d.tar.bz2 linux-9979d545c93653770984806e9bfcec1df53a9d3d.zip |
block: cryptoloop - Fix build warning
This patch fix the following build warning:
drivers/block/cryptoloop.c:46:8: warning: variable 'cipher' set but not used [-Wunused-but-set-variable]
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/cryptoloop.c')
-rw-r--r-- | drivers/block/cryptoloop.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/cryptoloop.c b/drivers/block/cryptoloop.c index 74e03aa537ad..7033a4beda66 100644 --- a/drivers/block/cryptoloop.c +++ b/drivers/block/cryptoloop.c @@ -43,7 +43,6 @@ cryptoloop_init(struct loop_device *lo, const struct loop_info64 *info) int cipher_len; int mode_len; char cms[LO_NAME_SIZE]; /* cipher-mode string */ - char *cipher; char *mode; char *cmsp = cms; /* c-m string pointer */ struct crypto_skcipher *tfm; @@ -56,7 +55,6 @@ cryptoloop_init(struct loop_device *lo, const struct loop_info64 *info) strncpy(cms, info->lo_crypt_name, LO_NAME_SIZE); cms[LO_NAME_SIZE - 1] = 0; - cipher = cmsp; cipher_len = strcspn(cmsp, "-"); mode = cmsp + cipher_len; |