summaryrefslogtreecommitdiffstats
path: root/drivers/net/chelsio/cxgb2.c
diff options
context:
space:
mode:
authorviro@ftp.linux.org.uk <viro@ftp.linux.org.uk>2005-09-05 03:25:48 +0100
committerJeff Garzik <jgarzik@pobox.com>2005-09-05 17:57:22 -0400
commit91fb4c964c606e63ce0d0d31814728d62a5de9bc (patch)
tree11f7b7eaa9575555666e8c8f96d5bb28a0e1ae8d /drivers/net/chelsio/cxgb2.c
parent67d2c36e901403bb97cb79ddb44d702c3284d0ba (diff)
downloadblackbird-op-linux-91fb4c964c606e63ce0d0d31814728d62a5de9bc.tar.gz
blackbird-op-linux-91fb4c964c606e63ce0d0d31814728d62a5de9bc.zip
[PATCH] (1/7) chelsio sparse annotations
NULL noise removal, __iomem annotations, use of if_mii() instead of open-coding it. Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/chelsio/cxgb2.c')
-rw-r--r--drivers/net/chelsio/cxgb2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/chelsio/cxgb2.c b/drivers/net/chelsio/cxgb2.c
index 28ae478b386d..349ebe783ed6 100644
--- a/drivers/net/chelsio/cxgb2.c
+++ b/drivers/net/chelsio/cxgb2.c
@@ -824,7 +824,7 @@ static void cxgb_proc_cleanup(struct adapter *adapter,
static int t1_ioctl(struct net_device *dev, struct ifreq *req, int cmd)
{
struct adapter *adapter = dev->priv;
- struct mii_ioctl_data *data = (struct mii_ioctl_data *)&req->ifr_data;
+ struct mii_ioctl_data *data = if_mii(req);
switch (cmd) {
case SIOCGMIIPHY:
OpenPOWER on IntegriCloud