linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] orinoco: trivial cleanup in alloc_orinocodev
@ 2009-01-21 18:55 Andrey Borzenkov
  2009-01-21 20:21 ` [Orinoco-devel] " Pavel Roskin
  0 siblings, 1 reply; 6+ messages in thread
From: Andrey Borzenkov @ 2009-01-21 18:55 UTC (permalink / raw)
  To: orinoco-devel, linux-wireless

[-- Attachment #1: Type: text/plain, Size: 1272 bytes --]

Subject: [PATCH] orinoco: trivial cleanup in alloc_orinocodev
From: Andrey Borzenkov <arvidjaar@mail.ru>

Remove extra space; remove redundant cast

Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>

---

This is on top of previous patch for struct net_device_ops.

 drivers/net/wireless/orinoco/orinoco.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/drivers/net/wireless/orinoco/orinoco.c 
b/drivers/net/wireless/orinoco/orinoco.c
index d1207d0..497f324 100644
--- a/drivers/net/wireless/orinoco/orinoco.c
+++ b/drivers/net/wireless/orinoco/orinoco.c
@@ -3603,7 +3603,7 @@ struct net_device
 	struct orinoco_private *priv;
 
 	dev = alloc_etherdev(sizeof(struct orinoco_private) + sizeof_card);
-	if (! dev)
+	if (!dev)
 		return NULL;
 	priv = netdev_priv(dev);
 	priv->ndev = dev;
@@ -3618,7 +3618,7 @@ struct net_device
 	dev->netdev_ops = &orinoco_netdev_ops;
 	dev->watchdog_timeo = HZ; /* 1 second timeout */
 	dev->ethtool_ops = &orinoco_ethtool_ops;
-	dev->wireless_handlers = (struct iw_handler_def *)&orinoco_handler_def;
+	dev->wireless_handlers = &orinoco_handler_def;
 #ifdef WIRELESS_SPY
 	priv->wireless_data.spy_data = &priv->spy_data;
 	dev->wireless_data = &priv->wireless_data;


[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-01-22 16:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-21 18:55 [PATCH] orinoco: trivial cleanup in alloc_orinocodev Andrey Borzenkov
2009-01-21 20:21 ` [Orinoco-devel] " Pavel Roskin
2009-01-21 20:32   ` Dave
2009-01-21 20:46     ` Pavel Roskin
2009-01-22  9:19   ` Kalle Valo
2009-01-22 16:33     ` Pavel Roskin

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).