summaryrefslogtreecommitdiffstats
path: root/net/rose
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-10-18 21:39:33 +0100
committerArnaldo Carvalho de Melo <acme@mandriva.com>2005-10-26 01:14:09 -0200
commit95df1c04ab3f7ca617774930df62c0893a188c2c (patch)
treec37783ed5a57ebf90fb3645ed18b3b0005fe58ff /net/rose
parentc83c24861882758b9731e8550225cd1e52a4cd1c (diff)
downloadlinux-95df1c04ab3f7ca617774930df62c0893a188c2c.tar.gz
linux-95df1c04ab3f7ca617774930df62c0893a188c2c.tar.bz2
linux-95df1c04ab3f7ca617774930df62c0893a188c2c.zip
[AX.25]: Use constant instead of magic number
Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/rose')
-rw-r--r--net/rose/rose_route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rose/rose_route.c b/net/rose/rose_route.c
index e556d92c0bc4..b18fe5043019 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);