Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214763
b: refs/heads/master
c: 807540b
h: refs/heads/master
i:
  214761: dc032c8
  214759: 6c0d510
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Sep 27, 2010
1 parent bf90380 commit 53c12a8
Show file tree
Hide file tree
Showing 107 changed files with 763 additions and 765 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cb4dfe562cac6fcb544df752e40c1d78000d0712
refs/heads/master: 807540baae406c84dcb9c1c8ef07a56d2d2ae84a
2 changes: 1 addition & 1 deletion trunk/drivers/net/3c523.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ static int __init do_elmc_probe(struct net_device *dev)

/* we didn't find any 3c523 in the slots we checked for */
if (slot == MCA_NOTFOUND)
return ((base_addr || irq) ? -ENXIO : -ENODEV);
return (base_addr || irq) ? -ENXIO : -ENODEV;

mca_set_adapter_name(slot, "3Com 3c523 Etherlink/MC");
mca_set_adapter_procfn(slot, (MCA_ProcFn) elmc_getinfo, dev);
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/net/appletalk/ipddp.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ static int ipddp_delete(struct ipddp_route *rt)
}

spin_unlock_bh(&ipddp_route_lock);
return (-ENOENT);
return -ENOENT;
}

/*
Expand All @@ -259,10 +259,10 @@ static struct ipddp_route* __ipddp_find_route(struct ipddp_route *rt)
if(f->ip == rt->ip &&
f->at.s_net == rt->at.s_net &&
f->at.s_node == rt->at.s_node)
return (f);
return f;
}

return (NULL);
return NULL;
}

static int ipddp_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
Expand All @@ -279,7 +279,7 @@ static int ipddp_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
switch(cmd)
{
case SIOCADDIPDDPRT:
return (ipddp_create(&rcp));
return ipddp_create(&rcp);

case SIOCFINDIPDDPRT:
spin_lock_bh(&ipddp_route_lock);
Expand All @@ -297,7 +297,7 @@ static int ipddp_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
return -ENOENT;

case SIOCDELIPDDPRT:
return (ipddp_delete(&rcp));
return ipddp_delete(&rcp);

default:
return -EINVAL;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/appletalk/ltpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ static int sendup_buffer (struct net_device *dev)

if (ltc->command != LT_RCVLAP) {
printk("unknown command 0x%02x from ltpc card\n",ltc->command);
return(-1);
return -1;
}
dnode = ltc->dnode;
snode = ltc->snode;
Expand Down
24 changes: 12 additions & 12 deletions trunk/drivers/net/atarilance.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ static void *slow_memcpy( void *dst, const void *src, size_t len )
*cto++ = *cfrom++;
MFPDELAY();
}
return( dst );
return dst;
}


Expand Down Expand Up @@ -449,7 +449,7 @@ static noinline int __init addr_accessible(volatile void *regp, int wordflag,
vbr[2] = save_berr;
local_irq_restore(flags);

return( ret );
return ret;
}

static const struct net_device_ops lance_netdev_ops = {
Expand Down Expand Up @@ -526,7 +526,7 @@ static unsigned long __init lance_probe1( struct net_device *dev,
goto probe_ok;

probe_fail:
return( 0 );
return 0;

probe_ok:
lp = netdev_priv(dev);
Expand Down Expand Up @@ -556,7 +556,7 @@ static unsigned long __init lance_probe1( struct net_device *dev,
if (request_irq(IRQ_AUTO_5, lance_interrupt, IRQ_TYPE_PRIO,
"PAM/Riebl-ST Ethernet", dev)) {
printk( "Lance: request for irq %d failed\n", IRQ_AUTO_5 );
return( 0 );
return 0;
}
dev->irq = (unsigned short)IRQ_AUTO_5;
}
Expand All @@ -568,12 +568,12 @@ static unsigned long __init lance_probe1( struct net_device *dev,
unsigned long irq = atari_register_vme_int();
if (!irq) {
printk( "Lance: request for VME interrupt failed\n" );
return( 0 );
return 0;
}
if (request_irq(irq, lance_interrupt, IRQ_TYPE_PRIO,
"Riebl-VME Ethernet", dev)) {
printk( "Lance: request for irq %ld failed\n", irq );
return( 0 );
return 0;
}
dev->irq = irq;
}
Expand Down Expand Up @@ -637,7 +637,7 @@ static unsigned long __init lance_probe1( struct net_device *dev,
/* XXX MSch */
dev->watchdog_timeo = TX_TIMEOUT;

return( 1 );
return 1;
}


Expand Down Expand Up @@ -666,7 +666,7 @@ static int lance_open( struct net_device *dev )
DPRINTK( 2, ( "lance_open(): opening %s failed, i=%d, csr0=%04x\n",
dev->name, i, DREG ));
DREG = CSR0_STOP;
return( -EIO );
return -EIO;
}
DREG = CSR0_IDON;
DREG = CSR0_STRT;
Expand All @@ -676,7 +676,7 @@ static int lance_open( struct net_device *dev )

DPRINTK( 2, ( "%s: LANCE is open, csr0 %04x\n", dev->name, DREG ));

return( 0 );
return 0;
}


Expand Down Expand Up @@ -1126,13 +1126,13 @@ static int lance_set_mac_address( struct net_device *dev, void *addr )
int i;

if (lp->cardtype != OLD_RIEBL && lp->cardtype != NEW_RIEBL)
return( -EOPNOTSUPP );
return -EOPNOTSUPP;

if (netif_running(dev)) {
/* Only possible while card isn't started */
DPRINTK( 1, ( "%s: hwaddr can be set only while card isn't open.\n",
dev->name ));
return( -EIO );
return -EIO;
}

memcpy( dev->dev_addr, saddr->sa_data, dev->addr_len );
Expand All @@ -1142,7 +1142,7 @@ static int lance_set_mac_address( struct net_device *dev, void *addr )
/* set also the magic for future sessions */
*RIEBL_MAGIC_ADDR = RIEBL_MAGIC;

return( 0 );
return 0;
}


Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/atlx/atl1.c
Original file line number Diff line number Diff line change
Expand Up @@ -2094,9 +2094,9 @@ static u16 atl1_tpd_avail(struct atl1_tpd_ring *tpd_ring)
{
u16 next_to_clean = atomic_read(&tpd_ring->next_to_clean);
u16 next_to_use = atomic_read(&tpd_ring->next_to_use);
return ((next_to_clean > next_to_use) ?
return (next_to_clean > next_to_use) ?
next_to_clean - next_to_use - 1 :
tpd_ring->count + next_to_clean - next_to_use - 1);
tpd_ring->count + next_to_clean - next_to_use - 1;
}

static int atl1_tso(struct atl1_adapter *adapter, struct sk_buff *skb,
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/benet/be_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ static void be_async_link_state_process(struct be_adapter *adapter,

static inline bool is_link_state_evt(u32 trailer)
{
return (((trailer >> ASYNC_TRAILER_EVENT_CODE_SHIFT) &
return ((trailer >> ASYNC_TRAILER_EVENT_CODE_SHIFT) &
ASYNC_TRAILER_EVENT_CODE_MASK) ==
ASYNC_EVENT_CODE_LINK_STATE);
ASYNC_EVENT_CODE_LINK_STATE;
}

static struct be_mcc_compl *be_mcc_compl_get(struct be_adapter *adapter)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/bmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1581,7 +1581,7 @@ bmac_proc_info(char *buffer, char **start, off_t offset, int length)
int i;

if (bmac_devs == NULL)
return (-ENOSYS);
return -ENOSYS;

len += sprintf(buffer, "BMAC counters & registers\n");

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/bna/bna_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
static int
bna_is_aen(u8 msg_id)
{
return (msg_id == BFI_LL_I2H_LINK_DOWN_AEN ||
msg_id == BFI_LL_I2H_LINK_UP_AEN);
return msg_id == BFI_LL_I2H_LINK_DOWN_AEN ||
msg_id == BFI_LL_I2H_LINK_UP_AEN;
}

static void
Expand Down Expand Up @@ -1702,7 +1702,7 @@ bna_device_cb_port_stopped(void *arg, enum bna_cb_status status)
int
bna_device_status_get(struct bna_device *device)
{
return (device->fsm == (bfa_fsm_t)bna_device_sm_ready);
return device->fsm == (bfa_fsm_t)bna_device_sm_ready;
}

void
Expand Down
20 changes: 10 additions & 10 deletions trunk/drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ static inline u32 bnx2_tx_avail(struct bnx2 *bp, struct bnx2_tx_ring_info *txr)
if (diff == TX_DESC_CNT)
diff = MAX_TX_DESC_CNT;
}
return (bp->tx_ring_size - diff);
return bp->tx_ring_size - diff;
}

static u32
Expand Down Expand Up @@ -299,7 +299,7 @@ bnx2_shmem_wr(struct bnx2 *bp, u32 offset, u32 val)
static u32
bnx2_shmem_rd(struct bnx2 *bp, u32 offset)
{
return (bnx2_reg_rd_ind(bp, bp->shmem_base + offset));
return bnx2_reg_rd_ind(bp, bp->shmem_base + offset);
}

static void
Expand Down Expand Up @@ -977,9 +977,9 @@ bnx2_report_fw_link(struct bnx2 *bp)
static char *
bnx2_xceiver_str(struct bnx2 *bp)
{
return ((bp->phy_port == PORT_FIBRE) ? "SerDes" :
return (bp->phy_port == PORT_FIBRE) ? "SerDes" :
((bp->phy_flags & BNX2_PHY_FLAG_SERDES) ? "Remote Copper" :
"Copper"));
"Copper");
}

static void
Expand Down Expand Up @@ -1758,7 +1758,7 @@ __acquires(&bp->phy_lock)
u32 new_adv = 0;

if (bp->phy_flags & BNX2_PHY_FLAG_REMOTE_PHY_CAP)
return (bnx2_setup_remote_phy(bp, port));
return bnx2_setup_remote_phy(bp, port);

if (!(bp->autoneg & AUTONEG_SPEED)) {
u32 new_bmcr;
Expand Down Expand Up @@ -2171,10 +2171,10 @@ __acquires(&bp->phy_lock)
return 0;

if (bp->phy_flags & BNX2_PHY_FLAG_SERDES) {
return (bnx2_setup_serdes_phy(bp, port));
return bnx2_setup_serdes_phy(bp, port);
}
else {
return (bnx2_setup_copper_phy(bp));
return bnx2_setup_copper_phy(bp);
}
}

Expand Down Expand Up @@ -7582,9 +7582,9 @@ bnx2_set_tx_csum(struct net_device *dev, u32 data)
struct bnx2 *bp = netdev_priv(dev);

if (CHIP_NUM(bp) == CHIP_NUM_5709)
return (ethtool_op_set_tx_ipv6_csum(dev, data));
return ethtool_op_set_tx_ipv6_csum(dev, data);
else
return (ethtool_op_set_tx_csum(dev, data));
return ethtool_op_set_tx_csum(dev, data);
}

static int
Expand Down Expand Up @@ -7705,7 +7705,7 @@ bnx2_change_mtu(struct net_device *dev, int new_mtu)
return -EINVAL;

dev->mtu = new_mtu;
return (bnx2_change_ring_size(bp, bp->rx_ring_size, bp->tx_ring_size));
return bnx2_change_ring_size(bp, bp->rx_ring_size, bp->tx_ring_size);
}

#ifdef CONFIG_NET_POLL_CONTROLLER
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/bnx2x/bnx2x_cmn.h
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ static inline int bnx2x_has_tx_work_unload(struct bnx2x_fastpath *fp)
{
/* Tell compiler that consumer and producer can change */
barrier();
return (fp->tx_pkt_prod != fp->tx_pkt_cons);
return fp->tx_pkt_prod != fp->tx_pkt_cons;
}

static inline u16 bnx2x_tx_avail(struct bnx2x_fastpath *fp)
Expand Down Expand Up @@ -632,7 +632,7 @@ static inline int bnx2x_has_rx_work(struct bnx2x_fastpath *fp)
rx_cons_sb = le16_to_cpu(*fp->rx_cons_sb);
if ((rx_cons_sb & MAX_RCQ_DESC_CNT) == MAX_RCQ_DESC_CNT)
rx_cons_sb++;
return (fp->rx_comp_cons != rx_cons_sb);
return fp->rx_comp_cons != rx_cons_sb;
}

/* HW Lock for shared dual port PHYs */
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/bonding/bond_3ad.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ static inline void __enable_port(struct port *port)
*/
static inline int __port_is_enabled(struct port *port)
{
return(port->slave->state == BOND_STATE_ACTIVE);
return port->slave->state == BOND_STATE_ACTIVE;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/bsd_comp.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ static void *bsd_alloc (unsigned char *options, int opt_len, int decomp)
if (!db->lens)
{
bsd_free (db);
return (NULL);
return NULL;
}
}
/*
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/cassini.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ static u16 cas_phy_read(struct cas *cp, int reg)
udelay(10);
cmd = readl(cp->regs + REG_MIF_FRAME);
if (cmd & MIF_FRAME_TURN_AROUND_LSB)
return (cmd & MIF_FRAME_DATA_MASK);
return cmd & MIF_FRAME_DATA_MASK;
}
return 0xFFFF; /* -1 */
}
Expand Down Expand Up @@ -804,7 +804,7 @@ static int cas_reset_mii_phy(struct cas *cp)
break;
udelay(10);
}
return (limit <= 0);
return limit <= 0;
}

static int cas_saturn_firmware_init(struct cas *cp)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/chelsio/sge.c
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,7 @@ static inline int responses_pending(const struct adapter *adapter)
const struct respQ *Q = &adapter->sge->respQ;
const struct respQ_e *e = &Q->entries[Q->cidx];

return (e->GenerationBit == Q->genbit);
return e->GenerationBit == Q->genbit;
}

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/chelsio/vsc7326.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ static int bist_rd(adapter_t *adapter, int moduleid, int address)
else if ((result & (1 << 8)) != 0x0)
pr_err("bist read error: 0x%x\n", result);

return (result & 0xff);
return result & 0xff;
}

static int bist_wr(adapter_t *adapter, int moduleid, int address, int value)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/cxgb3/cxgb3_offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static inline int offload_activated(struct t3cdev *tdev)
{
const struct adapter *adapter = tdev2adap(tdev);

return (test_bit(OFFLOAD_DEVMAP_BIT, &adapter->open_device_map));
return test_bit(OFFLOAD_DEVMAP_BIT, &adapter->open_device_map);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/de620.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ static int de620_rx_intr(struct net_device *dev)
de620_set_register(dev, W_NPRF, next_rx_page);
pr_debug("next_rx_page=%d CPR=%d\n", next_rx_page, curr_page);

return (next_rx_page != curr_page); /* That was slightly tricky... */
return next_rx_page != curr_page; /* That was slightly tricky... */
}

/*********************************************
Expand Down
Loading

0 comments on commit 53c12a8

Please sign in to comment.