Skip to content

Commit

Permalink
[PATCH] (1/7) chelsio sparse annotations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
viro@ftp.linux.org.uk authored and Jeff Garzik committed Sep 5, 2005
1 parent 67d2c36 commit 91fb4c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/net/chelsio/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ struct t1_rx_mode {

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) {
addr = rm->list->dmi_addr;
Expand Down Expand Up @@ -190,7 +190,7 @@ struct sge;
struct peespi;

struct adapter {
u8 *regs;
u8 __iomem *regs;
struct pci_dev *pdev;
unsigned long registered_device_map;
unsigned long open_device_map;
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/chelsio/cxgb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 91fb4c9

Please sign in to comment.