Skip to content

Commit 1314234

Browse files
author
Linus Torvalds
committed
Merge HEAD from master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6.git
2 parents 3fd1bb9 + d4ef160 commit 1314234

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

drivers/net/tg3.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@
6666

6767
#define DRV_MODULE_NAME "tg3"
6868
#define PFX DRV_MODULE_NAME ": "
69-
#define DRV_MODULE_VERSION "3.36"
70-
#define DRV_MODULE_RELDATE "August 19, 2005"
69+
#define DRV_MODULE_VERSION "3.37"
70+
#define DRV_MODULE_RELDATE "August 25, 2005"
7171

7272
#define TG3_DEF_MAC_MODE 0
7373
#define TG3_DEF_RX_MODE 0
@@ -7865,8 +7865,6 @@ static int tg3_test_loopback(struct tg3 *tp)
78657865

78667866
err = -EIO;
78677867

7868-
tg3_abort_hw(tp, 1);
7869-
78707868
tg3_reset_hw(tp);
78717869

78727870
mac_mode = (tp->mac_mode & ~MAC_MODE_PORT_MODE_MASK) |

net/ipv4/fib_trie.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,9 +1333,9 @@ err:;
13331333
}
13341334

13351335
static inline int check_leaf(struct trie *t, struct leaf *l, t_key key, int *plen, const struct flowi *flp,
1336-
struct fib_result *res, int *err)
1336+
struct fib_result *res)
13371337
{
1338-
int i;
1338+
int err, i;
13391339
t_key mask;
13401340
struct leaf_info *li;
13411341
struct hlist_head *hhead = &l->list;
@@ -1348,18 +1348,18 @@ static inline int check_leaf(struct trie *t, struct leaf *l, t_key key, int *pl
13481348
if (l->key != (key & mask))
13491349
continue;
13501350

1351-
if (((*err) = fib_semantic_match(&li->falh, flp, res, l->key, mask, i)) == 0) {
1351+
if ((err = fib_semantic_match(&li->falh, flp, res, l->key, mask, i)) <= 0) {
13521352
*plen = i;
13531353
#ifdef CONFIG_IP_FIB_TRIE_STATS
13541354
t->stats.semantic_match_passed++;
13551355
#endif
1356-
return 1;
1356+
return err;
13571357
}
13581358
#ifdef CONFIG_IP_FIB_TRIE_STATS
13591359
t->stats.semantic_match_miss++;
13601360
#endif
13611361
}
1362-
return 0;
1362+
return 1;
13631363
}
13641364

13651365
static int
@@ -1386,7 +1386,7 @@ fn_trie_lookup(struct fib_table *tb, const struct flowi *flp, struct fib_result
13861386

13871387
/* Just a leaf? */
13881388
if (IS_LEAF(n)) {
1389-
if (check_leaf(t, (struct leaf *)n, key, &plen, flp, res, &ret))
1389+
if ((ret = check_leaf(t, (struct leaf *)n, key, &plen, flp, res)) <= 0)
13901390
goto found;
13911391
goto failed;
13921392
}
@@ -1508,7 +1508,7 @@ fn_trie_lookup(struct fib_table *tb, const struct flowi *flp, struct fib_result
15081508
continue;
15091509
}
15101510
if (IS_LEAF(n)) {
1511-
if (check_leaf(t, (struct leaf *)n, key, &plen, flp, res, &ret))
1511+
if ((ret = check_leaf(t, (struct leaf *)n, key, &plen, flp, res)) <= 0)
15121512
goto found;
15131513
}
15141514
backtrace:

0 commit comments

Comments
 (0)