Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323102
b: refs/heads/master
c: e21093e
h: refs/heads/master
v: v3
  • Loading branch information
Ira W. Snyder authored and Marc Kleine-Budde committed Sep 21, 2012
1 parent 97760d9 commit efacb81
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 19 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: dc9c9759ebc65d886453c335b2b5be39f87ab01e
refs/heads/master: e21093ef6fb4cbecdf926102286dbe280ae965db
4 changes: 1 addition & 3 deletions trunk/drivers/net/can/janz-ican3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,6 @@ static irqreturn_t ican3_irq(int irq, void *dev_id)
*/
static int ican3_reset_module(struct ican3_dev *mod)
{
u8 val = 1 << mod->num;
unsigned long start;
u8 runold, runnew;

Expand All @@ -1405,8 +1404,7 @@ static int ican3_reset_module(struct ican3_dev *mod)
runold = ioread8(mod->dpm + TARGET_RUNNING);

/* reset the module */
iowrite8(val, &mod->ctrl->reset_assert);
iowrite8(val, &mod->ctrl->reset_deassert);
iowrite8(0x00, &mod->dpmctrl->hwreset);

/* wait until the module has finished resetting and is running */
start = jiffies;
Expand Down
11 changes: 5 additions & 6 deletions trunk/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -9831,13 +9831,12 @@ static void __devinit bnx2x_get_igu_cam_info(struct bnx2x *bp)
}

#ifdef CONFIG_PCI_MSI
/* Due to new PF resource allocation by MFW T7.4 and above, it's
* optional that number of CAM entries will not be equal to the value
* advertised in PCI.
* Driver should use the minimal value of both as the actual status
* block count
/*
* It's expected that number of CAM entries for this functions is equal
* to the number evaluated based on the MSI-X table size. We want a
* harsh warning if these values are different!
*/
bp->igu_sb_cnt = min_t(int, bp->igu_sb_cnt, igu_sb_cnt);
WARN_ON(bp->igu_sb_cnt != igu_sb_cnt);
#endif

if (igu_sb_cnt == 0)
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/ethernet/freescale/gianfar_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1773,7 +1773,6 @@ static int gfar_get_nfc(struct net_device *dev, struct ethtool_rxnfc *cmd,
}

int gfar_phc_index = -1;
EXPORT_SYMBOL(gfar_phc_index);

static int gfar_get_ts_info(struct net_device *dev,
struct ethtool_ts_info *info)
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/ethernet/freescale/gianfar_ptp.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ static int gianfar_ptp_probe(struct platform_device *dev)
err = PTR_ERR(etsects->clock);
goto no_clock;
}
gfar_phc_index = ptp_clock_index(etsects->clock);
gfar_phc_clock = ptp_clock_index(etsects->clock);

dev_set_drvdata(&dev->dev, etsects);

Expand All @@ -539,7 +539,7 @@ static int gianfar_ptp_remove(struct platform_device *dev)
gfar_write(&etsects->regs->tmr_temask, 0);
gfar_write(&etsects->regs->tmr_ctrl, 0);

gfar_phc_index = -1;
gfar_phc_clock = -1;
ptp_clock_unregister(etsects->clock);
iounmap(etsects->regs);
release_resource(etsects->rsrc);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/ethernet/stmicro/stmmac/stmmac_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ int stmmac_open_ext_timer(struct net_device *dev, struct stmmac_timer *tm)
{
timer_clock = clk_get(NULL, TMU_CHANNEL);

if (IS_ERR(timer_clock))
if (timer_clock == NULL)
return -1;

if (tmu2_register_user(stmmac_timer_handler, (void *)dev) < 0) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/irda/sh_sir.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ static int sh_sir_set_baudrate(struct sh_sir_self *self, u32 baudrate)
}

clk = clk_get(NULL, "irda_clk");
if (IS_ERR(clk)) {
if (!clk) {
dev_err(dev, "can not get irda_clk\n");
return -EIO;
}
Expand Down
4 changes: 0 additions & 4 deletions trunk/net/ipv6/ip6_fib.c
Original file line number Diff line number Diff line change
Expand Up @@ -819,10 +819,6 @@ int fib6_add(struct fib6_node *root, struct rt6_info *rt, struct nl_info *info)
offsetof(struct rt6_info, rt6i_src),
allow_create, replace_required);

if (IS_ERR(sn)) {
err = PTR_ERR(sn);
sn = NULL;
}
if (!sn) {
/* If it is failed, discard just allocated
root, and then (in st_failure) stale node
Expand Down

0 comments on commit efacb81

Please sign in to comment.