Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46504
b: refs/heads/master
c: c697f83
h: refs/heads/master
v: v3
  • Loading branch information
Francois Romieu authored and Jeff Garzik committed Feb 5, 2007
1 parent 5497242 commit 559af3e
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 11 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: ea8862dc86c0f5a0be012a0f2e9de1b2ccabbaa5
refs/heads/master: c697f83e8c880a1e69fb2a45a6e4aa0670e10602
3 changes: 2 additions & 1 deletion trunk/drivers/net/chelsio/espi.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ void t1_espi_set_misc_ctrl(adapter_t *adapter, u32 val)
{
struct peespi *espi = adapter->espi;

if (!is_T2(adapter)) return;
if (!is_T2(adapter))
return;
spin_lock(&espi->lock);
espi->misc_ctrl = (val & ~MON_MASK) |
(espi->misc_ctrl & MON_MASK);
Expand Down
9 changes: 6 additions & 3 deletions trunk/drivers/net/chelsio/ixf1010.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ static int mac_set_rx_mode(struct cmac *mac, struct t1_rx_mode *rm)
static int mac_set_mtu(struct cmac *mac, int mtu)
{
/* MAX_FRAME_SIZE inludes header + FCS, mtu doesn't */
if (mtu > (MAX_FRAME_SIZE - 14 - 4)) return -EINVAL;
if (mtu > (MAX_FRAME_SIZE - 14 - 4))
return -EINVAL;
t1_tpi_write(mac->adapter, MACREG(mac, REG_MAX_FRAME_SIZE),
mtu + 14 + 4);
return 0;
Expand Down Expand Up @@ -460,10 +461,12 @@ static struct cmac *ixf1010_mac_create(adapter_t *adapter, int index)
struct cmac *mac;
u32 val;

if (index > 9) return NULL;
if (index > 9)
return NULL;

mac = kzalloc(sizeof(*mac) + sizeof(cmac_instance), GFP_KERNEL);
if (!mac) return NULL;
if (!mac)
return NULL;

mac->ops = &ixf1010_ops;
mac->instance = (cmac_instance *)(mac + 1);
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/net/chelsio/mv88e1xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ static int mv88e1xxx_interrupt_handler(struct cphy *cphy)
MV88E1XXX_INTERRUPT_STATUS_REGISTER,
&cause);
cause &= INTR_ENABLE_MASK;
if (!cause) break;
if (!cause)
break;

if (cause & MV88E1XXX_INTR_LINK_CHNG) {
(void) simple_mdio_read(cphy,
Expand Down Expand Up @@ -360,7 +361,8 @@ static struct cphy *mv88e1xxx_phy_create(adapter_t *adapter, int phy_addr,
{
struct cphy *cphy = kzalloc(sizeof(*cphy), GFP_KERNEL);

if (!cphy) return NULL;
if (!cphy)
return NULL;

cphy_init(cphy, adapter, phy_addr, &mv88e1xxx_ops, mdio_ops);

Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/net/chelsio/subr.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,8 @@ int t1_elmer0_ext_intr_handler(adapter_t *adapter)
int i, port_bit;
for_each_port(adapter, i) {
port_bit = i + 1;
if (!(cause & (1 << port_bit))) continue;
if (!(cause & (1 << port_bit)))
continue;

phy = adapter->port[i].phy;
phy_cause = phy->ops->interrupt_handler(phy);
Expand Down Expand Up @@ -688,7 +689,8 @@ int t1_elmer0_ext_intr_handler(adapter_t *adapter)

for_each_port(adapter, i) {
port_bit = i ? i + 1 : 0;
if (!(cause & (1 << port_bit))) continue;
if (!(cause & (1 << port_bit)))
continue;

phy = adapter->port[i].phy;
phy_cause = phy->ops->interrupt_handler(phy);
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/net/chelsio/vsc7326.c
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,8 @@ static struct cmac *vsc7326_mac_create(adapter_t *adapter, int index)
int i;

mac = kzalloc(sizeof(*mac) + sizeof(cmac_instance), GFP_KERNEL);
if (!mac) return NULL;
if (!mac)
return NULL;

mac->ops = &vsc7326_ops;
mac->instance = (cmac_instance *)(mac + 1);
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/net/chelsio/vsc8244.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ static struct cphy* vsc8244_phy_create(adapter_t *adapter, int phy_addr, struct
{
struct cphy *cphy = kzalloc(sizeof(*cphy), GFP_KERNEL);

if (!cphy) return NULL;
if (!cphy)
return NULL;

cphy_init(cphy, adapter, phy_addr, &vsc8244_ops, mdio_ops);

Expand Down

0 comments on commit 559af3e

Please sign in to comment.