From patchwork Mon Sep 25 17:10:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 9970259 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B70FF6038E for ; Mon, 25 Sep 2017 17:12:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9985528BCC for ; Mon, 25 Sep 2017 17:12:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8E77828BE4; Mon, 25 Sep 2017 17:12:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5908A28BCC for ; Mon, 25 Sep 2017 17:12:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935560AbdIYRMR (ORCPT ); Mon, 25 Sep 2017 13:12:17 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:36128 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935407AbdIYRMP (ORCPT ); Mon, 25 Sep 2017 13:12:15 -0400 Received: by mail-wr0-f193.google.com with SMTP id g50so50174wra.3; Mon, 25 Sep 2017 10:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=I5A3eyL13io+KnJg5Q56CNtLgeRFy0670/Zr85tIBKU=; b=SLd+jT+rP+aV53G+FAKXrTBR+pS1FIvbRGJStso0zN9gkpPjqkb5Qg7sb/4JaqzYgH a+sDpkJR2FIOpgRNquOJFLmEAT32JVGb9RAj75J9NqwZa+jXtG/6kTU4De3CwAw4x6WK x/SRdTSfUPVENbYKuBR4iCKO+doq7srF5L5dccjFVD9qhaFdjuKu1MoPT6mpVpDdkbwS V4tpWTEWkclzftWWq3JFVxBOFvFqaxEe5hJhLqJrvSKKpPNtmH6Y5NWbqDaRx+WF1wtW Xxax5xhp5MrXWQOEWEclZ53Xvoyh5yrKRYz8Tj1AtG34UNV/ySn75AFthdZlwrf72ocp 1giQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=I5A3eyL13io+KnJg5Q56CNtLgeRFy0670/Zr85tIBKU=; b=Be5yCY8YjUufLBabN8toNKkW5KHTcZmddcpjkxCvviC3XgkvLcJCiG26g+wZfRrZbc 14z7zB9hK12AhpruxTtHjZVNlsoVlJeO8t0JSPhMbx05Rf4XtXQ+USdywAz0/u577a5n Sbue5QLmafbXqbynSJiCdwx+WN0hFYwBXQMre5+c0g+pkwaAY2nXBmi4lZ2VT7ZYiTWh 5z/LnTrPoU8x5sIxF/ym3t38UIvBxi3FKf+WMJGZONaHJ2JHZ4sYa6yAaccBbBz1lL6U cBPy3V3mItwyl88DYw3PDWBIxNv7b5OTbR2zqMcKAdO2gdBfRsqFO8W8/kM/smsWZhs7 Y5Sg== X-Gm-Message-State: AHPjjUjpnlrdU53lnF/fYoInJEF2UI8XmzXrWy+u1mJFMfx+Y41Ek1l9 vio0Rkv3Kx54JXMdEAZE8nw= X-Google-Smtp-Source: AOwi7QCFRJ8tqBkdColTdm7je4cfrYnnWtKOyDEKXWsIGuAw4EMjwTg/oIUCLQe8v4b+TbudLn6uOA== X-Received: by 10.223.178.166 with SMTP id g35mr7170716wrd.262.1506359534569; Mon, 25 Sep 2017 10:12:14 -0700 (PDT) Received: from Red.local (LFbn-MAR-1-580-96.w90-118.abo.wanadoo.fr. [90.118.159.96]) by smtp.googlemail.com with ESMTPSA id f89sm3682785wmh.18.2017.09.25.10.12.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Sep 2017 10:12:13 -0700 (PDT) From: Corentin Labbe To: axboe@kernel.dk, herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH] block: cryptoloop - Fix build warning Date: Mon, 25 Sep 2017 19:10:07 +0200 Message-Id: <20170925171007.4660-1-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.5 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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;