From patchwork Wed Jan 15 05:52:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 3490111 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C4BD49F169 for ; Wed, 15 Jan 2014 05:52:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0F362201F2 for ; Wed, 15 Jan 2014 05:52:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 278E920179 for ; Wed, 15 Jan 2014 05:52:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750757AbaAOFw5 (ORCPT ); Wed, 15 Jan 2014 00:52:57 -0500 Received: from mail-bk0-f43.google.com ([209.85.214.43]:51529 "EHLO mail-bk0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750724AbaAOFw4 (ORCPT ); Wed, 15 Jan 2014 00:52:56 -0500 Received: by mail-bk0-f43.google.com with SMTP id mz11so59392bkb.30 for ; Tue, 14 Jan 2014 21:52:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=McMwoYD3mJBKjDeEFzQWWkxzwzwbjFj8iHGQ5C1qOxo=; b=LakgkcsGVRnY6i2Cui89FWrv2WHFEtjP+n1Nm+AD7/cdMhID2EEJ13U8t3Z/QxS8my vn7jr+ZTOWVQlaAI+HcSzF8Ha4CK8RiM+isvrrV+1b7SRyc+oZq7Oh7DVEDa3QTLl8n5 AFnoKj7TmeEEAzu2sslTghO7AcjsxCyg7b49HXvMDGj/dJuRMgCrJVyThwhGfgBZ9fF+ 02ylK4Df3zZIL47n6VkOCbo12uOpO6g5Q2AmT0Ktt5YPgNQrJjUv4sZECVIVnB/bhiTr c0M2ZOzlmYiHfhahAjDSgeutyC2o5zUs40HB5dR935/sFW4+Htj1BhtMaKo1Ic4/v7/a aD/Q== MIME-Version: 1.0 X-Received: by 10.204.163.200 with SMTP id b8mr210275bky.15.1389765175406; Tue, 14 Jan 2014 21:52:55 -0800 (PST) Received: by 10.204.74.130 with HTTP; Tue, 14 Jan 2014 21:52:55 -0800 (PST) Date: Wed, 15 Jan 2014 13:52:55 +0800 Message-ID: Subject: [PATCH -next] IB/usnic: Remove unused variable in usnic_debugfs_exit() From: Wei Yongjun To: umalhi@cisco.com, roland@kernel.org, sean.hefty@intel.com, hal.rosenstock@gmail.com Cc: yongjun_wei@trendmicro.com.cn, linux-rdma@vger.kernel.org Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun The variable qp_grp is initialized but never used otherwise, so remove the unused variable. Signed-off-by: Wei Yongjun --- drivers/infiniband/hw/usnic/usnic_debugfs.c | 4 ---- 1 file changed, 4 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/infiniband/hw/usnic/usnic_debugfs.c b/drivers/infiniband/hw/usnic/usnic_debugfs.c index 6cb2e7c..5d13860 100644 --- a/drivers/infiniband/hw/usnic/usnic_debugfs.c +++ b/drivers/infiniband/hw/usnic/usnic_debugfs.c @@ -131,13 +131,9 @@ void usnic_debugfs_exit(void) void usnic_debugfs_flow_add(struct usnic_ib_qp_grp_flow *qp_flow) { - struct usnic_ib_qp_grp *qp_grp; - if (IS_ERR_OR_NULL(flows_dentry)) return; - qp_grp = qp_flow->qp_grp; - scnprintf(qp_flow->dentry_name, sizeof(qp_flow->dentry_name), "%u", qp_flow->flow->flow_id); qp_flow->dbgfs_dentry = debugfs_create_file(qp_flow->dentry_name,