Commit a424077a authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

wimax: remove unneeded variable

We never actually use "dev" so I removed it.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a3dcce97
...@@ -110,7 +110,6 @@ int wimax_gnl_doit_reset(struct sk_buff *skb, struct genl_info *info) ...@@ -110,7 +110,6 @@ int wimax_gnl_doit_reset(struct sk_buff *skb, struct genl_info *info)
{ {
int result, ifindex; int result, ifindex;
struct wimax_dev *wimax_dev; struct wimax_dev *wimax_dev;
struct device *dev;
d_fnstart(3, NULL, "(skb %p info %p)\n", skb, info); d_fnstart(3, NULL, "(skb %p info %p)\n", skb, info);
result = -ENODEV; result = -ENODEV;
...@@ -123,7 +122,6 @@ int wimax_gnl_doit_reset(struct sk_buff *skb, struct genl_info *info) ...@@ -123,7 +122,6 @@ int wimax_gnl_doit_reset(struct sk_buff *skb, struct genl_info *info)
wimax_dev = wimax_dev_get_by_genl_info(info, ifindex); wimax_dev = wimax_dev_get_by_genl_info(info, ifindex);
if (wimax_dev == NULL) if (wimax_dev == NULL)
goto error_no_wimax_dev; goto error_no_wimax_dev;
dev = wimax_dev_to_dev(wimax_dev);
/* Execute the operation and send the result back to user space */ /* Execute the operation and send the result back to user space */
result = wimax_reset(wimax_dev); result = wimax_reset(wimax_dev);
dev_put(wimax_dev->net_dev); dev_put(wimax_dev->net_dev);
......
...@@ -53,7 +53,6 @@ int wimax_gnl_doit_state_get(struct sk_buff *skb, struct genl_info *info) ...@@ -53,7 +53,6 @@ int wimax_gnl_doit_state_get(struct sk_buff *skb, struct genl_info *info)
{ {
int result, ifindex; int result, ifindex;
struct wimax_dev *wimax_dev; struct wimax_dev *wimax_dev;
struct device *dev;
d_fnstart(3, NULL, "(skb %p info %p)\n", skb, info); d_fnstart(3, NULL, "(skb %p info %p)\n", skb, info);
result = -ENODEV; result = -ENODEV;
...@@ -66,7 +65,6 @@ int wimax_gnl_doit_state_get(struct sk_buff *skb, struct genl_info *info) ...@@ -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); wimax_dev = wimax_dev_get_by_genl_info(info, ifindex);
if (wimax_dev == NULL) if (wimax_dev == NULL)
goto error_no_wimax_dev; goto error_no_wimax_dev;
dev = wimax_dev_to_dev(wimax_dev);
/* Execute the operation and send the result back to user space */ /* Execute the operation and send the result back to user space */
result = wimax_state_get(wimax_dev); result = wimax_state_get(wimax_dev);
dev_put(wimax_dev->net_dev); dev_put(wimax_dev->net_dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment