Commit 91fb4c96 authored by viro@ftp.linux.org.uk's avatar viro@ftp.linux.org.uk Committed by Jeff Garzik

[PATCH] (1/7) chelsio sparse annotations

NULL noise removal, __iomem annotations, use of if_mii() instead of
open-coding it.
Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent 67d2c36e
...@@ -88,7 +88,7 @@ struct t1_rx_mode { ...@@ -88,7 +88,7 @@ struct t1_rx_mode {
static inline u8 *t1_get_next_mcaddr(struct t1_rx_mode *rm) static inline u8 *t1_get_next_mcaddr(struct t1_rx_mode *rm)
{ {
u8 *addr = 0; u8 *addr = NULL;
if (rm->idx++ < rm->dev->mc_count) { if (rm->idx++ < rm->dev->mc_count) {
addr = rm->list->dmi_addr; addr = rm->list->dmi_addr;
...@@ -190,7 +190,7 @@ struct sge; ...@@ -190,7 +190,7 @@ struct sge;
struct peespi; struct peespi;
struct adapter { struct adapter {
u8 *regs; u8 __iomem *regs;
struct pci_dev *pdev; struct pci_dev *pdev;
unsigned long registered_device_map; unsigned long registered_device_map;
unsigned long open_device_map; unsigned long open_device_map;
......
...@@ -824,7 +824,7 @@ static void cxgb_proc_cleanup(struct adapter *adapter, ...@@ -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) static int t1_ioctl(struct net_device *dev, struct ifreq *req, int cmd)
{ {
struct adapter *adapter = dev->priv; 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) { switch (cmd) {
case SIOCGMIIPHY: case SIOCGMIIPHY:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment