* [PATCH netnext-2.6] bonding: fix a parameter name in error message
@ 2009-10-07 20:59 Nicolas de Pesloüan
2009-10-07 20:59 ` [PATCH netnext-2.6] bonding: remove useless assignment Nicolas de Pesloüan
2009-10-07 21:10 ` [PATCH netnext-2.6] bonding: fix a parameter name in error message David Miller
0 siblings, 2 replies; 4+ messages in thread
From: Nicolas de Pesloüan @ 2009-10-07 20:59 UTC (permalink / raw)
To: fubar, davem; +Cc: netdev, bonding-devel
When parsing module parameters, bond_check_params() erroneously use 'xor_mode'
as the name of a module parameter in an error message.
The right name for this parameter is 'xmit_hash_policy'.
Signed-off-by: Nicolas de Pesloüan <nicolas.2p.debian@free.fr>
---
drivers/net/bonding/bond_main.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 69c5b15..20dc5a2 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -4665,7 +4665,8 @@ static int bond_check_params(struct bond_params *params)
if ((bond_mode != BOND_MODE_XOR) &&
(bond_mode != BOND_MODE_8023AD)) {
pr_info(DRV_NAME
- ": xor_mode param is irrelevant in mode %s\n",
+ ": xmit_hash_policy param is irrelevant in"
+ " mode %s\n",
bond_mode_name(bond_mode));
} else {
xmit_hashtype = bond_parse_parm(xmit_hash_policy,
--
1.6.3.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH netnext-2.6] bonding: remove useless assignment
2009-10-07 20:59 [PATCH netnext-2.6] bonding: fix a parameter name in error message Nicolas de Pesloüan
@ 2009-10-07 20:59 ` Nicolas de Pesloüan
2009-10-07 21:11 ` David Miller
2009-10-07 21:10 ` [PATCH netnext-2.6] bonding: fix a parameter name in error message David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Nicolas de Pesloüan @ 2009-10-07 20:59 UTC (permalink / raw)
To: fubar, davem; +Cc: netdev, bonding-devel
The variable old_active is first set to bond->curr_active_slave.
Then, it is unconditionally set to new_active, without being used in between.
The first assignment, having no side effect, is useless.
Signed-off-by: Nicolas de Pesloüan <nicolas.2p.debian@free.fr>
Reviewed-by: Jiri Pirko <jpirko@redhat.com>
---
drivers/net/bonding/bond_main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 20dc5a2..34bdea5 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -1084,7 +1084,7 @@ static struct slave *bond_find_best_slave(struct bonding *bond)
int mintime = bond->params.updelay;
int i;
- new_active = old_active = bond->curr_active_slave;
+ new_active = bond->curr_active_slave;
if (!new_active) { /* there were no active slaves left */
if (bond->slave_cnt > 0) /* found one slave */
--
1.6.3.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH netnext-2.6] bonding: fix a parameter name in error message
2009-10-07 20:59 [PATCH netnext-2.6] bonding: fix a parameter name in error message Nicolas de Pesloüan
2009-10-07 20:59 ` [PATCH netnext-2.6] bonding: remove useless assignment Nicolas de Pesloüan
@ 2009-10-07 21:10 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2009-10-07 21:10 UTC (permalink / raw)
To: nicolas.2p.debian; +Cc: fubar, netdev, bonding-devel
From: Nicolas de Pesloüan <nicolas.2p.debian@free.fr>
Date: Wed, 7 Oct 2009 22:59:27 +0200
> When parsing module parameters, bond_check_params() erroneously use 'xor_mode'
> as the name of a module parameter in an error message.
>
> The right name for this parameter is 'xmit_hash_policy'.
>
> Signed-off-by: Nicolas de Pesloüan <nicolas.2p.debian@free.fr>
Applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH netnext-2.6] bonding: remove useless assignment
2009-10-07 20:59 ` [PATCH netnext-2.6] bonding: remove useless assignment Nicolas de Pesloüan
@ 2009-10-07 21:11 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2009-10-07 21:11 UTC (permalink / raw)
To: nicolas.2p.debian; +Cc: fubar, netdev, bonding-devel
From: Nicolas de Pesloüan <nicolas.2p.debian@free.fr>
Date: Wed, 7 Oct 2009 22:59:28 +0200
> The variable old_active is first set to bond->curr_active_slave.
> Then, it is unconditionally set to new_active, without being used in between.
>
> The first assignment, having no side effect, is useless.
>
> Signed-off-by: Nicolas de Pesloüan <nicolas.2p.debian@free.fr>
> Reviewed-by: Jiri Pirko <jpirko@redhat.com>
Also applied.
Conclusion, avoid Thunderbird like the plague....
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-10-07 21:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-07 20:59 [PATCH netnext-2.6] bonding: fix a parameter name in error message Nicolas de Pesloüan
2009-10-07 20:59 ` [PATCH netnext-2.6] bonding: remove useless assignment Nicolas de Pesloüan
2009-10-07 21:11 ` David Miller
2009-10-07 21:10 ` [PATCH netnext-2.6] bonding: fix a parameter name in error message David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).