Commit 95df1c04 authored by Ralf Baechle's avatar Ralf Baechle Committed by Arnaldo Carvalho de Melo

[AX.25]: Use constant instead of magic number

Signed-off-by: default avatarRalf Baechle DL5RB <ralf@linux-mips.org>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@mandriva.com>
parent c83c2486
...@@ -727,7 +727,7 @@ int rose_rt_ioctl(unsigned int cmd, void __user *arg) ...@@ -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 */ if (rose_route.mask > 10) /* Mask can't be more than 10 digits */
return -EINVAL; return -EINVAL;
if (rose_route.ndigis > 8) /* No more than 8 digipeats */ if (rose_route.ndigis > AX25_MAX_DIGIS)
return -EINVAL; return -EINVAL;
err = rose_add_node(&rose_route, dev); err = rose_add_node(&rose_route, dev);
dev_put(dev); dev_put(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment