From: Ralf Baechle <ralf@linux-mips.org>
To: "David S. Miller" <davem@davemloft.net>
Cc: Arnaldo Carvalho de Melo <acme@conectiva.com.br>,
dann frazier <dannf@hp.com>,
chrisw@osdl.org, netdev@vger.kernel.org,
linux-hams@vger.kernel.org
Subject: [PATCH] AX.25: Use constant instead of magic number.
Date: Tue, 18 Oct 2005 21:39:33 +0100 [thread overview]
Message-ID: <20051018203932.GA11053@linux-mips.org> (raw)
Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org>
net/rose/rose_route.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: net-git/net/rose/rose_route.c
===================================================================
--- net-git.orig/net/rose/rose_route.c
+++ net-git/net/rose/rose_route.c
@@ -727,7 +727,7 @@ int rose_rt_ioctl(unsigned int cmd, void
}
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);
next reply other threads:[~2005-10-18 20:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-18 20:39 Ralf Baechle [this message]
2005-10-20 22:12 ` af_rose.c Bernard Pidoux
2005-10-28 22:47 ` [PATCH] AX.25: Use constant instead of magic number Arnaldo Carvalho de Melo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051018203932.GA11053@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=acme@conectiva.com.br \
--cc=chrisw@osdl.org \
--cc=dannf@hp.com \
--cc=davem@davemloft.net \
--cc=linux-hams@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).