Skip to content

Commit

Permalink
wimax: remove unneeded variable
Browse files Browse the repository at this point in the history
We never actually use "dev" so I removed it.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
error27 authored and davem330 committed Mar 24, 2010
1 parent a3dcce9 commit a424077
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions net/wimax/op-reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ int wimax_gnl_doit_reset(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;
Expand All @@ -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);
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_reset(wimax_dev);
dev_put(wimax_dev->net_dev);
Expand Down
2 changes: 0 additions & 2 deletions net/wimax/op-state-get.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit a424077

Please sign in to comment.