Skip to content

Commit

Permalink
orinoco: trivial cleanup in alloc_orinocodev
Browse files Browse the repository at this point in the history
Remove extra space; remove redundant cast

Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
Acked-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Andrey Borzenkov authored and John W. Linville committed Jan 29, 2009
1 parent 89ea409 commit e129a94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/orinoco/orinoco.c
Original file line number Diff line number Diff line change
Expand Up @@ -3604,7 +3604,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;
Expand All @@ -3619,7 +3619,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;
Expand Down

0 comments on commit e129a94

Please sign in to comment.