From patchwork Mon May 14 10:17:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 135721 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1561868lji; Mon, 14 May 2018 03:18:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqr5oNqEL5AT/Hni5N7xgNmrYvlzxCWw163MceAdm2Ffn4pmkjKKZVaChWjcN2oUjEsUHNv X-Received: by 2002:a63:6d42:: with SMTP id i63-v6mr8060608pgc.161.1526293094613; Mon, 14 May 2018 03:18:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526293094; cv=none; d=google.com; s=arc-20160816; b=mpSg5J/LES0BLHLpE1L5ko3DuWDvmsnl0YXUuF+YzBt+CbmJBV1rab4BxVid0jTMzG cBGCH72DYpwlGvLxWoEI3TgYrXIvPp1rvUlE1qaLS8ajCFWUugVBJnqqlhGuwkb0Tt0L Lyyc01t6uYrkdagjTSou2iPI/rQSEmfZh+U91YznZGJUsLTuIQf1zmJi5b0JeM76QCqO K9TlmQNKc3+gzKHe9XfgOONz6C5fbwXJQcUUbJc1oEZWA51iNj9Zc1dsFSxppabmC0gX yGgC+dhuTzb9oqzYD0mabx6y91gs0oOsZ2FfCpa+PzfuxR/UAgmAWqFunjITJH9cEdQS CB5Q== 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=8Q+LCGyA9/0BrlKqc1EaaiVxSDyQgC7geecYHQLvynI=; b=zU9gw4pk6+7UTfr1c1ClWsLUx7/k7AdZdnMBtgGODJz4l6ui/9VqCUalPbdPY8Ub6W NXXfKVGZED9UN8u+uQYWpg3tShbI4IGhSr7o0s2xNAadCqmyVc3Q/r2inJqin99MpTgN qXh/aT2cM+JEuj7w6crEY2nMhLZ1MBpZRjDqcf/AXTtMEfoDJJ0SoaPbYYDDZmDUC583 neFhrsENEfoFsOEeXBpgC0hzLFpKPUEWyabisAsTOgqA8JZy6S8TyD9C0B9oV/tBWAJN bE+HzKQi/WEyqeqjdMNA2emyYHOoEr06AnQKHcQqFAXtuVqVxuXQa19e/+cqKW2RBcIq EQaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JL7MV8aX; 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.14; Mon, 14 May 2018 03:18:14 -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=JL7MV8aX; 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 S1752125AbeENKSM (ORCPT + 29 others); Mon, 14 May 2018 06:18:12 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:41487 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750917AbeENKSL (ORCPT ); Mon, 14 May 2018 06:18:11 -0400 Received: by mail-lf0-f65.google.com with SMTP id m17-v6so11951839lfj.8 for ; Mon, 14 May 2018 03:18:10 -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=8Q+LCGyA9/0BrlKqc1EaaiVxSDyQgC7geecYHQLvynI=; b=JL7MV8aX78YlS+W2sflBEijTWxo02FmMbFSuXsSVZR0jJ6bWC2spjQQgW938WWKqxK NO4V/+h6nP8g3Kwu5f89N4XfOYKO7d3KEsDhvDiptSsb16RoUrThaH2EHZNYlxC1ZBLu 85BpQ755JEzoA+2uh2SgY9IdhKS6j3frnIwOA= 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=8Q+LCGyA9/0BrlKqc1EaaiVxSDyQgC7geecYHQLvynI=; b=aEq76ngupLudz2OP8TswCDKuAhgP2Tk3SI+ITlbxOxYnNI9fGpxxbifQ+U1uzbs2i5 LIuBMQ9NHNrW9wxs5thTxR8VoRg4Bmrx1OxvM6tcnUbtoDnRIAwTTrtjngJKvhjzON0U QC3ULn7twaeDDD4Q18wHsOVBKGW1BGyHPV4cVPeZP9/KKpjqQrgAAXVM4q42sivOBna2 z/vsC6qg9nlYaaldhNiWicPwsV1wlmzX3gf2woO9m7eGAUnH2tMZ7zLu5tGtWoxayG/I vP0sgKjEkvu+Gmrju2KHbgvMUFCa/ZO86Z3klVQVdppd9oJU93Qmr6tk0KNIf5DveCSS Pg5A== X-Gm-Message-State: ALKqPwdMxEGTZUbaIpPpaWNxlYC04jmarHePNmB2GPlAG274mBmq7i7U E6Op6ZLpx+eAJ61Wh0OXPtOoH3WaZ2I= X-Received: by 2002:a19:d763:: with SMTP id o96-v6mr7908604lfg.89.1526293090044; Mon, 14 May 2018 03:18:10 -0700 (PDT) Received: from localhost (c-2c3d70d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id w21-v6sm1723806ljd.97.2018.05.14.03.18.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 03:18:09 -0700 (PDT) From: Anders Roxell To: axboe@kernel.dk, maximlevitsky@gmail.com Cc: linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] memstick: mspro_block: fix unused variable warning Date: Mon, 14 May 2018 12:17:56 +0200 Message-Id: <20180514101756.2120-2-anders.roxell@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180514101756.2120-1-anders.roxell@linaro.org> References: <20180514101756.2120-1-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. 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;