netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] AX.25: Use constant instead of magic number.
@ 2005-10-18 20:39 Ralf Baechle
  2005-10-20 22:12 ` af_rose.c Bernard Pidoux
  2005-10-28 22:47 ` [PATCH] AX.25: Use constant instead of magic number Arnaldo Carvalho de Melo
  0 siblings, 2 replies; 3+ messages in thread
From: Ralf Baechle @ 2005-10-18 20:39 UTC (permalink / raw)
  To: David S. Miller
  Cc: Arnaldo Carvalho de Melo, dann frazier, chrisw, netdev,
	linux-hams

Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org>

 net/rose/rose_route.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: net-git/net/rose/rose_route.c
===================================================================
--- net-git.orig/net/rose/rose_route.c
+++ net-git/net/rose/rose_route.c
@@ -727,7 +727,7 @@ int rose_rt_ioctl(unsigned int cmd, void
 		}
 		if (rose_route.mask > 10) /* Mask can't be more than 10 digits */
 			return -EINVAL;
-		if (rose_route.ndigis > 8) /* No more than 8 digipeats */
+		if (rose_route.ndigis > AX25_MAX_DIGIS)
 			return -EINVAL;
 		err = rose_add_node(&rose_route, dev);
 		dev_put(dev);

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-28 22:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-18 20:39 [PATCH] AX.25: Use constant instead of magic number Ralf Baechle
2005-10-20 22:12 ` af_rose.c Bernard Pidoux
2005-10-28 22:47 ` [PATCH] AX.25: Use constant instead of magic number Arnaldo Carvalho de Melo

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