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: 114180 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp2839520qgf; Mon, 25 Sep 2017 10:12:18 -0700 (PDT) X-Received: by 10.101.91.66 with SMTP id y2mr8539129pgr.235.1506359538734; Mon, 25 Sep 2017 10:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506359538; cv=none; d=google.com; s=arc-20160816; b=xRB2Bl2OljTNXTgiBOEcneEnNc0YnrMWvx+vOJLyWsZ0+47+6pIEvzUWMD6eSFh8eS FoP8sPn8ApHuNMvsFMYHXNGxLUW18h3Nc/mr32ffdD1mPFqOOtDdBfMLjznQLz8VLfGC QsYh2g/eBxdyaXCAFypgH2psepgFytw0gATGgY1nkHt91OgO+m/G3GgTWBJ8aI1Ai4cf jIzzySpSINQrFUZdtSTRbsrYZTjleJWV1kxlCYFYNlAj6wvIKOg2920ULG5FGUTnt4RK eXu+/Q0Z8b0ZxZBUAOoHYWRcNlkI+2qHP+trlbvBznr50dqUkw69DJwCHOpr4uUhzUqT 3ghA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=I5A3eyL13io+KnJg5Q56CNtLgeRFy0670/Zr85tIBKU=; b=UrxsHRlDoHwEsQetqxnUL5877gvk97f/a6Mg7Uf7Gyn9/fqXS7OyNp4Taa0XixKVZV mzdmREhYmz8r6VZ4HH3h+YQEZjo+Wni8+FE8QefhUhNiFzzCZa12gPMJWjETSDOZxYY6 Vx4QGM/KFqrCo45kfN2gJxYAz0ykrVd7Aez+p30kg4xptH6VFKRgw8b8scOsxlLnTn8p lQ9JgdoE3PKjB+ZZbirixIWJXeB9jWTeYH0Z+AULmzSI3KuJQvpLU8tFNIgKfRe+iESb NE8KMUbIWblV5wiBP+l1CDCHx9mPwm8VVriTjVmzruNcsvIUS5C4T3DZzcAgIaHSfReM FgDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SLd+jT+r; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3si2555804pld.208.2017.09.25.10.12.18; Mon, 25 Sep 2017 10:12:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SLd+jT+r; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935560AbdIYRMR (ORCPT + 1 other); 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 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(-) -- 2.13.5 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;