diff mbox series

block: cryptoloop - Fix build warning

Message ID 20170925171007.4660-1-clabbe.montjoie@gmail.com
State Accepted
Commit 9979d545c93653770984806e9bfcec1df53a9d3d
Headers show
Series block: cryptoloop - Fix build warning | expand

Commit Message

Corentin Labbe Sept. 25, 2017, 5:10 p.m. UTC
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>

---
 drivers/block/cryptoloop.c | 2 --
 1 file changed, 2 deletions(-)

-- 
2.13.5

Comments

Jens Axboe Sept. 25, 2017, 7:24 p.m. UTC | #1
On 09/25/2017 11:10 AM, Corentin Labbe wrote:
> This patch fix the following build warning:

> drivers/block/cryptoloop.c:46:8: warning: variable 'cipher' set but not used [-Wunused-but-set-variable]


Thanks, added for 4.15.

-- 
Jens Axboe
diff mbox series

Patch

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;