netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [resend] Remove useless condition: max_bonds is of type int and cannot be greater than INT_MAX.
@ 2009-08-26 19:22 Nicolas de Pesloüan
  0 siblings, 0 replies; only message in thread
From: Nicolas de Pesloüan @ 2009-08-26 19:22 UTC (permalink / raw)
  To: David Miller, Jay Vosburgh; +Cc: bonding-devel, netdev

Remove useless condition: max_bonds is of type int and cannot be greater than 
INT_MAX.

Signed-off-by: Nicolas de Pesloüan <nicolas.2p.debian@free.fr>
---
  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 4798d30..edd71a1 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -4755,7 +4755,7 @@ static int bond_check_params(struct bond_params *params)
  		params->ad_select = BOND_AD_STABLE;
  	}

-	if (max_bonds < 0 || max_bonds > INT_MAX) {
+	if (max_bonds < 0) {
  		pr_warning(DRV_NAME
  		       ": Warning: max_bonds (%d) not in range %d-%d, so it "
  		       "was reset to BOND_DEFAULT_MAX_BONDS (%d)\n",



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-26 19:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-26 19:22 [PATCH] [resend] Remove useless condition: max_bonds is of type int and cannot be greater than INT_MAX Nicolas de Pesloüan

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).