Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1739185 > unrolled thread

[PATCH] block: cryptoloop - Fix build warning

Started byCorentin Labbe <clabbe.montjoie@gmail.com>
First post2017-09-25 19:20 +0200
Last post2017-09-25 21:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] block: cryptoloop - Fix build warning Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-09-25 19:20 +0200
    Re: [PATCH] block: cryptoloop - Fix build warning Jens Axboe <axboe@kernel.dk> - 2017-09-25 21:30 +0200

#1739185 — [PATCH] block: cryptoloop - Fix build warning

FromCorentin Labbe <clabbe.montjoie@gmail.com>
Date2017-09-25 19:20 +0200
Subject[PATCH] block: cryptoloop - Fix build warning
Message-ID<utFcZ-WX-3@gated-at.bofh.it>
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(-)

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;
-- 
2.13.5

[toc] | [next] | [standalone]


#1739238

FromJens Axboe <axboe@kernel.dk>
Date2017-09-25 21:30 +0200
Message-ID<utHeO-2eS-27@gated-at.bofh.it>
In reply to#1739185
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web