summaryrefslogtreecommitdiffstats
path: root/net/wimax/op-state-get.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-03-24 01:56:03 +0000
committerDavid S. Miller <davem@davemloft.net>2010-03-24 13:34:09 -0700
commita424077a0a48d5b2e1bdbb8cc56fd43abfd7fd6c (patch)
tree4e6652a2405d8702bcf6fa66546cfc994da0c5e1 /net/wimax/op-state-get.c
parenta3dcce97b285ba54810f38fe2eccc295d69a76ce (diff)
downloadop-kernel-dev-a424077a0a48d5b2e1bdbb8cc56fd43abfd7fd6c.zip
op-kernel-dev-a424077a0a48d5b2e1bdbb8cc56fd43abfd7fd6c.tar.gz
wimax: remove unneeded variable
We never actually use "dev" so I removed it. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/wimax/op-state-get.c')
-rw-r--r--net/wimax/op-state-get.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/wimax/op-state-get.c b/net/wimax/op-state-get.c
index 11ad335..aff8776 100644
--- a/net/wimax/op-state-get.c
+++ b/net/wimax/op-state-get.c
@@ -53,7 +53,6 @@ int wimax_gnl_doit_state_get(struct sk_buff *skb, struct genl_info *info)
{
int result, ifindex;
struct wimax_dev *wimax_dev;
- struct device *dev;
d_fnstart(3, NULL, "(skb %p info %p)\n", skb, info);
result = -ENODEV;
@@ -66,7 +65,6 @@ int wimax_gnl_doit_state_get(struct sk_buff *skb, struct genl_info *info)
wimax_dev = wimax_dev_get_by_genl_info(info, ifindex);
if (wimax_dev == NULL)
goto error_no_wimax_dev;
- dev = wimax_dev_to_dev(wimax_dev);
/* Execute the operation and send the result back to user space */
result = wimax_state_get(wimax_dev);
dev_put(wimax_dev->net_dev);
OpenPOWER on IntegriCloud