Skip to content

Commit

Permalink
[AX.25]: Use constant instead of magic number
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle DL5RB <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
  • Loading branch information
ralfbaechle authored and Arnaldo Carvalho de Melo committed Oct 26, 2005
1 parent c83c248 commit 95df1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/rose/rose_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 95df1c0

Please sign in to comment.