From: Ralf Baechle Date: Tue, 18 Oct 2005 20:39:33 +0000 (+0100) Subject: [AX.25]: Use constant instead of magic number X-Git-Tag: v2.6.15-rc1~733^2~5^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95df1c04ab3f7ca617774930df62c0893a188c2c;p=linux-2.6 [AX.25]: Use constant instead of magic number Signed-off-by: Ralf Baechle DL5RB Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/net/rose/rose_route.c b/net/rose/rose_route.c index e556d92c0b..b18fe50430 100644 --- a/net/rose/rose_route.c +++ b/net/rose/rose_route.c @@ -727,7 +727,7 @@ int rose_rt_ioctl(unsigned int cmd, void __user *arg) } 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);