Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp243112imm; Wed, 11 Jul 2018 01:25:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdKvdZ1NMsdISj8ODBUgcJIi4GXqHfhWMjEUob1SHUx0tooqoRfMpe8q3+9e/jlRYbn8/of X-Received: by 2002:a17:902:8ec9:: with SMTP id x9-v6mr27089959plo.1.1531297527466; Wed, 11 Jul 2018 01:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531297527; cv=none; d=google.com; s=arc-20160816; b=dl05zNdGbeJ9cLb4pjibHvqOf3liUgUUb2G3soldJmfEi0QN+p8aWzePu7PPdBKyKJ wXsYmhaiqhz7GLO5zX5mSvpIOQpBw8b/PpURSaDH9f2Y5Hn6NmonZYmmwHIUCTEvnwvi AoLcqAYqJ48U5B/+SIlSbQS056A+fAhQi3ItVk4H6JiWcYk7f9Bm7dT2MJcIjH0XNQvX QGGkNlKJUGBFmTgWP/h8GGC7KeHUrj0toVxDE/rIR9+3hPqEbCamu4Lg7S7t8SMMO8EA hTarWqpmeKpJB6P9GevJGlQTMEyO6GIOXZkQKza4XgZtAaUabz4FI9p2DXcOTMej/g68 NlBA== 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:arc-authentication-results; bh=ABbfSRa5wBlvp83XiQL+9TcB3PGS7dnh1fOCrWLGq40=; b=Qs6F/qCONVNj6AKK6OOelG4gvjsuxClBlCqHHVSX+YKBpEtbMDeYiY/EeZdhInhB6Y Xf4ILtW5CFcCZlXrURL7ih02E97+W+/Mue2ynxwYXhMO2YOAQgtnbhxRYpKSu7W8Gadz 0qm9p20r1YozPI9C/NJuWrWhHqN5/y5i1lZFTY2WIL8ecOCkcc3tZTlO5IUpCxZS/cyB plquf7gQ4zYtVq2jxIlPAa0yEF+jTqU1xhTvzf60woLVhhfCKNyypdaNxxB1OnegeSWC bO38AkPDR75hbRZGuK90psGe7xhbmnhuMV6C/bFhO5hDqguPX8errZLPjh/MtCEGclNu ozYA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t19-v6si18729954pgb.196.2018.07.11.01.25.12; Wed, 11 Jul 2018 01:25:27 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732198AbeGKI04 (ORCPT + 99 others); Wed, 11 Jul 2018 04:26:56 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:44984 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726337AbeGKI04 (ORCPT ); Wed, 11 Jul 2018 04:26:56 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1fdAPa-0005fC-UZ; Wed, 11 Jul 2018 08:23:47 +0000 From: Colin King To: Matt Porter , Alexandre Bounine , linux-kernel@vger.kernel.org Cc: kernel-janitors@vger.kernel.org Subject: [PATCH] rapidio: remove redundant pointer md Date: Wed, 11 Jul 2018 09:23:46 +0100 Message-Id: <20180711082346.5223-1-colin.king@canonical.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King Pointer md is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'md' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King --- drivers/rapidio/devices/rio_mport_cdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/rapidio/devices/rio_mport_cdev.c b/drivers/rapidio/devices/rio_mport_cdev.c index a8cb8d2f2abb..cbe467ff1aba 100644 --- a/drivers/rapidio/devices/rio_mport_cdev.c +++ b/drivers/rapidio/devices/rio_mport_cdev.c @@ -1006,7 +1006,6 @@ static int rio_mport_transfer_ioctl(struct file *filp, void __user *arg) static int rio_mport_wait_for_async_dma(struct file *filp, void __user *arg) { struct mport_cdev_priv *priv; - struct mport_dev *md; struct rio_async_tx_wait w_param; struct mport_dma_req *req; dma_cookie_t cookie; @@ -1016,7 +1015,6 @@ static int rio_mport_wait_for_async_dma(struct file *filp, void __user *arg) int ret; priv = (struct mport_cdev_priv *)filp->private_data; - md = priv->md; if (unlikely(copy_from_user(&w_param, arg, sizeof(w_param)))) return -EFAULT; -- 2.17.1