* [patch] wimax: remove unneeded variable
@ 2010-03-24 11:56 Dan Carpenter
2010-03-24 20:36 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2010-03-24 11:56 UTC (permalink / raw)
To: netdev
Cc: André Goddard Rosa, David S. Miller, Alexey Dobriyan,
Jiri Kosina, kernel-janitors
We never actually use "dev" so I removed it.
Signed-off-by: Dan Carpenter <error27@gmail.com>
diff --git a/net/wimax/op-reset.c b/net/wimax/op-reset.c
index 4dc82a5..68bedf3 100644
--- a/net/wimax/op-reset.c
+++ b/net/wimax/op-reset.c
@@ -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;
@@ -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);
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);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [patch] wimax: remove unneeded variable
2010-03-24 11:56 [patch] wimax: remove unneeded variable Dan Carpenter
@ 2010-03-24 20:36 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-03-24 20:36 UTC (permalink / raw)
To: error27; +Cc: netdev, andre.goddard, adobriyan, jkosina, kernel-janitors
From: Dan Carpenter <error27@gmail.com>
Date: Wed, 24 Mar 2010 14:56:03 +0300
> We never actually use "dev" so I removed it.
>
> Signed-off-by: Dan Carpenter <error27@gmail.com>
I think the intention was to pass it into to these
stupid function call tracing debugging macros the
WIMAX stuff has. It's passing NULL currently.
Anyways, I've applied this, thanks.
But seriously, why is every developer of some new subsystem or driver
inclined to add such ugly debugging infrastructure? It's seemingly
the first thing they do before writing any code.
I'd very much like to see a patch that removes all of this junk and
"rm -f include/linux/wimax/debug.h"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-24 20:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-24 11:56 [patch] wimax: remove unneeded variable Dan Carpenter
2010-03-24 20:36 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).