From patchwork Mon May 14 10:52:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 135722 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1596489lji; Mon, 14 May 2018 03:52:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrtSxGvOayzPju5Y1tfMkqkGTZ8FpAW/MBEahEX5Iy59CNaa7VCM8K2JbTv2KIsNghadr71 X-Received: by 2002:a17:902:224:: with SMTP id 33-v6mr1559907plc.309.1526295156999; Mon, 14 May 2018 03:52:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526295156; cv=none; d=google.com; s=arc-20160816; b=IsVn4Qwji15AnX5G7JBFoqsX6zmknHdMYouUDXlEbQQdujcVVOOULQCJ0BknjTEDe6 M7EuYot7KAQKDd7bz7YemSAinAyePv9IUZgfWbsWOBX8WquKtB1VLpocDbToI34skH3T FQF16CfOvwB8cCfIjnmx2gq+YX/cuuY1otq9+2dYljNqR/AAydlXacGIRPAZ0pFmhnPe hHstJoqRz812VGWjFk/AuvJAoWUSNpD0gLUsMySevG9XwOYJgRLocchX8zArjge6WE2W q6a8eY9QrxBEzGtY9WCZYOwmrb2xRhhEFOIA4mIj7286YPYm6H7h/wzQu1aipRXEYzZA 2EHQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=pnh0bS2Vob4wk2SE+FIJSYQQmfVxr1xE3L3Xlus1hwo=; b=0sC09OV3GZWPXlstbtpvuuk9+FS9wSkGuh1SiPpab0zOdh3/P3F43BsDbECc13EL2t PAgtPWPyfR3ytZXfECh+eOCZqRX9fczo9DwvxNcwP9ZAE/kK9Hobl9qyOnHIV3HdmoF3 DiW1M0nZQX9AN5P1nnoTfswtGqw4Nk3EuZKcQB89XeH5vD/oo0hQy1+z81QpzHQErfwU hQsiocnv/JPB0++gFx5UiReAFZU+ihB+NrLPHw/04SW8PwENDtMvGpzvvKD6534cDWEh wHdvTlbNrXANFeXjgsLtkzBDsT8ugKoZdEtMTNfsudHSNCXkRHfO7QYGYYznJrRg7wC6 Q+gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VpKPnY/w; 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 l8-v6si7359224pgn.269.2018.05.14.03.52.36; Mon, 14 May 2018 03:52:36 -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=VpKPnY/w; 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 S1752155AbeENKwe (ORCPT + 29 others); Mon, 14 May 2018 06:52:34 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:34049 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751198AbeENKwc (ORCPT ); Mon, 14 May 2018 06:52:32 -0400 Received: by mail-lf0-f66.google.com with SMTP id r25-v6so17257501lfd.1 for ; Mon, 14 May 2018 03:52:32 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=pnh0bS2Vob4wk2SE+FIJSYQQmfVxr1xE3L3Xlus1hwo=; b=VpKPnY/wiuzHhykbC7HOX6o8fk2fANp8SGNWH0WFajGvsi0UHPe/seuJgfLQzsZ8M4 eow1IxbpvteVrjA4Ebe1J+Wd5KOc3PqKBFKvZtu6CXUbubJAs4ub4CIv47AcvykMeXXg 9jtbdWveWT5B0PQUIiJlJF7GbMykDQe3Ec5nw= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=pnh0bS2Vob4wk2SE+FIJSYQQmfVxr1xE3L3Xlus1hwo=; b=Qw4H5c/yPQi8T8VEEvAXjKxNZYj+xXpDRcEfXL2QDnarPB3HV/46hIwuNz4PnfZYT3 dHuIqKkmqX6Q/LvDJgkC1LoZMQ74y0HLGIWTcMSdB9O544AR+Z/F8oBn3O3ejVvH5et/ l7vWhjuMb6bsocjKqGL+T0ARLF/mq9oXJYMASDLOmko/rIR4lf8rH9xbxXgYcyUhlMpu rgcbjDoOOqHHviZGnjicseLJcYtkhBFGVZnZq6IPII3wRELR59UBvM8DdAW35e9Kl+Q+ E2s1e7bMWGEYge92qa2EXFAnphQWHxweOqoW8Pj7ZmFiMk+w8PWD0GCV4d0prpCXAd2I aPuQ== X-Gm-Message-State: ALKqPwdoXYOhEJJKEhXjp9z8ACUbZO8cZTMT9szY/DhGUXHap6d58R1P UkfMP6UfdZdcm/KWEZNPD6byIA== X-Received: by 2002:a2e:8659:: with SMTP id i25-v6mr4519335ljj.128.1526295151503; Mon, 14 May 2018 03:52:31 -0700 (PDT) Received: from localhost (c-2c3d70d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id a14-v6sm2329064lfh.80.2018.05.14.03.52.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 03:52:30 -0700 (PDT) From: Anders Roxell To: axboe@kernel.dk, maximlevitsky@gmail.com Cc: linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH v2] memstick: mspro_block: fix unused variable warning Date: Mon, 14 May 2018 12:52:05 +0200 Message-Id: <20180514105205.9504-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180514101756.2120-2-anders.roxell@linaro.org> References: <20180514101756.2120-2-anders.roxell@linaro.org> 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 mspro_block a warning pops up unused variable 'host', drivers/memstick/core/mspro_block.c: In function ‘mspro_block_init_disk’: drivers/memstick/core/mspro_block.c:1173:24: warning: unused variable ‘host’ [-Wunused-variable] struct memstick_host *host = card->host; ^~~~ Removing the declaration of 'host' in function mspro_block_init_disk. Fixes: 7c2d748e8476 ("memstick: don't call blk_queue_bounce_limit") Signed-off-by: Anders Roxell --- drivers/memstick/core/mspro_block.c | 1 - 1 file changed, 1 deletion(-) -- 2.17.0 diff --git a/drivers/memstick/core/mspro_block.c b/drivers/memstick/core/mspro_block.c index a2fadc605750..5ee932631fae 100644 --- a/drivers/memstick/core/mspro_block.c +++ b/drivers/memstick/core/mspro_block.c @@ -1170,7 +1170,6 @@ static int mspro_block_init_card(struct memstick_dev *card) static int mspro_block_init_disk(struct memstick_dev *card) { struct mspro_block_data *msb = memstick_get_drvdata(card); - struct memstick_host *host = card->host; struct mspro_devinfo *dev_info = NULL; struct mspro_sys_info *sys_info = NULL; struct mspro_sys_attr *s_attr = NULL;