From patchwork Mon May 14 10:17:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 135720 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1561763lji; Mon, 14 May 2018 03:18:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqEM5XYoJ5DoPFIjQDawFAcrkeENdKWqx5wrGVCZ3Jovapy9ge/7WQtkbCt85qzykCRDeUP X-Received: by 2002:a62:9099:: with SMTP id q25-v6mr9982734pfk.66.1526293087194; Mon, 14 May 2018 03:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526293087; cv=none; d=google.com; s=arc-20160816; b=tf+H9Z6dadtTSFqnxyd+nZG8+cjMDO5F94wPOcpFbQ6+vHw2e1pkdji1y/vLyTwBgN 7cXOm4aNydg4WsaXbt+L6NVXjwKlYQdpuwrajaNT7+/IduBY3vtIxpfrvze9bIVqhJll QpYvdT3heSJZxN8oU8qhBxHHOgYTiNrhVCZMfySLZ3gIGUEsw1S0fFh7klRHJuRcIOda a5++c9l98fG8srjDkYXhnKsgT3YsYZb6Zg0zHZUWSf1HXRTYvzOWidfmkVmB1uAW0k2U yBirhSiFVWclIT4PC+9Tu/NVSpMkj72WO82hNbUqx4/VmA/qF5Cd4CAre7fb/RmYIJaN m7AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=wH81l2Gv/z69tHZn131/JB4Xotcwz2YqurjmGPZwBzI=; b=E/lvW2/6TUQ23TxvoCHnOB+FcqWiDOMkdtOM6fu/AbeC3ON8m3YgGbmD+qtb+7ygke BCG/3esS6PiTjIyig9BXGHHO/ga4yX/ux2JWQsz882ZqqN89/NCmtwIgWR3iDdwTY/Qu n2nMyOhdJC2ssYzSv2sUCGOJdLjB27kuNht++uKWritl1zC1fSfS5R0BVj9Z1aCAqfJ2 PvKny5TZibYl7oGP15JNaJW/UJlSpMxGk2NxMFWFftAo3ufTzQTjkutgnlN3P83CgPYW OgMetxuRXS/PfVScviYg6v7eA3AyVE1nFALrnTF/zPMCn5a01fF/kLnBE9Z/B3k1MI/Q WYGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jvm7amOn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j8-v6si8823955plk.0.2018.05.14.03.18.06; Mon, 14 May 2018 03:18:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@linaro.org header.s=google header.b=jvm7amOn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752097AbeENKSE (ORCPT + 29 others); Mon, 14 May 2018 06:18:04 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:39470 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750917AbeENKSC (ORCPT ); Mon, 14 May 2018 06:18:02 -0400 Received: by mail-lf0-f67.google.com with SMTP id j193-v6so17119478lfg.6 for ; Mon, 14 May 2018 03:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wH81l2Gv/z69tHZn131/JB4Xotcwz2YqurjmGPZwBzI=; b=jvm7amOnPKibfZpDdqvzSs5lk/McdGvdE7Y0mXkC1nfbVLXWIi6fiVjSnR/v8PT+rI SlXZzrlmScKwVJDgD4irEACWg2GxuEkz62zVyDjgF9jCs5tbInyjuCaekf5yisKkA2pT a9IVd2lwP2CTMpZ9e3U+PZeIOvIrUtGvORUnk= 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:mime-version :content-transfer-encoding; bh=wH81l2Gv/z69tHZn131/JB4Xotcwz2YqurjmGPZwBzI=; b=dqPTVgMZvXdOt1HovEjMcT1Ueo79rxTIlkla2JkXcwDr+e7NPYc9QOBwCm1UDRZjHt SaJp8ZFaL65mowvvfyW0Y4XDVdvNrLfs1BGWRSPWfwH6op4WR4GhH5k0qv5CzrsCHwex k0Eq/GPnV1mxRPEEvn/ob3sTKuqJzy0lhaLaWXXmVlrI7mFfRacaPyxmoeZAlbJyiyWe EMD+CCvwxoaXc36GRKb7UEfJLxmNSe7bDiIM0Qm3k6+WVWyKyBiNKdPe38uEwNi1nQto N2pQqBd0YwavHEZoFmmksyyIvVHnCfM+QBAgrOmIv7HzkrQlplxJL6i0pXiihKuQPg26 9qTQ== X-Gm-Message-State: ALKqPwccFEeeh8Dk2tgNSM4YReItfHGHz9hjo6O6uqB1uz/f6lOVdCRh xwO9Wp6yLxdWX+Dk4icO1GNN6g== X-Received: by 2002:a2e:634e:: with SMTP id x75-v6mr4426814ljb.140.1526293081493; Mon, 14 May 2018 03:18:01 -0700 (PDT) Received: from localhost (c-2c3d70d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id 23-v6sm2334802lfw.64.2018.05.14.03.18.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 03:18:00 -0700 (PDT) From: Anders Roxell To: axboe@kernel.dk, maximlevitsky@gmail.com Cc: linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] memstick: ms_block: fix unused variable warning Date: Mon, 14 May 2018 12:17:55 +0200 Message-Id: <20180514101756.2120-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building a warning pops up unused variable 'host' drivers/memstick/core/ms_block.c: In function ‘msb_init_disk’: drivers/memstick/core/ms_block.c:2097:24: warning: unused variable ‘host’ [-Wunused-variable] struct memstick_host *host = card->host; ^~~~ Removing the declaration of 'host' in function msb_init_disk. Fixes: 7c2d748e8476 ("memstick: don't call blk_queue_bounce_limit") Signed-off-by: Anders Roxell --- drivers/memstick/core/ms_block.c | 1 - 1 file changed, 1 deletion(-) -- 2.17.0 diff --git a/drivers/memstick/core/ms_block.c b/drivers/memstick/core/ms_block.c index b2d025f42d14..a15181fa45f7 100644 --- a/drivers/memstick/core/ms_block.c +++ b/drivers/memstick/core/ms_block.c @@ -2094,7 +2094,6 @@ static const struct block_device_operations msb_bdops = { static int msb_init_disk(struct memstick_dev *card) { struct msb_data *msb = memstick_get_drvdata(card); - struct memstick_host *host = card->host; int rc; unsigned long capacity;