[AX.25]: Use constant instead of magic number
authorRalf Baechle <ralf@linux-mips.org>
Tue, 18 Oct 2005 20:39:33 +0000 (21:39 +0100)
committerArnaldo Carvalho de Melo <acme@mandriva.com>
Wed, 26 Oct 2005 03:14:09 +0000 (01:14 -0200)
Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
net/rose/rose_route.c

index e556d92c0bc4d2eb5883acda48b051a608a10d9f..b18fe504301944d8514816df8d6eb90f715b048d 100644 (file)
@@ -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);