aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2014-01-15 00:52:55 -0500
committerRoland Dreier <roland@purestorage.com>2014-01-18 16:50:14 -0500
commitd1db47c5eed89a1c8b60e780aeadd870bb0d3894 (patch)
tree363b191867d7faa0758158460d586a78e9a92172 /drivers/infiniband/hw
parent6dcebe614c667fca73aaf0cfbd1e70bc9179538e (diff)
IB/usnic: Remove unused variable in usnic_debugfs_exit()
The variable qp_grp is initialized but never used otherwise, so remove the unused variable. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/usnic/usnic_debugfs.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/usnic/usnic_debugfs.c b/drivers/infiniband/hw/usnic/usnic_debugfs.c
index 6cb2e7ca7df2..5d13860161a4 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)
131 131
132void usnic_debugfs_flow_add(struct usnic_ib_qp_grp_flow *qp_flow) 132void usnic_debugfs_flow_add(struct usnic_ib_qp_grp_flow *qp_flow)
133{ 133{
134 struct usnic_ib_qp_grp *qp_grp;
135
136 if (IS_ERR_OR_NULL(flows_dentry)) 134 if (IS_ERR_OR_NULL(flows_dentry))
137 return; 135 return;
138 136
139 qp_grp = qp_flow->qp_grp;
140
141 scnprintf(qp_flow->dentry_name, sizeof(qp_flow->dentry_name), 137 scnprintf(qp_flow->dentry_name, sizeof(qp_flow->dentry_name),
142 "%u", qp_flow->flow->flow_id); 138 "%u", qp_flow->flow->flow_id);
143 qp_flow->dbgfs_dentry = debugfs_create_file(qp_flow->dentry_name, 139 qp_flow->dbgfs_dentry = debugfs_create_file(qp_flow->dentry_name,