diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-10-12 17:58:35 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-10-13 18:40:45 +0200 |
commit | c045ad2cc01e473b98771379eb58fe13560b7f70 (patch) | |
tree | 25eefca4d363ca3d682ddb7a4b2dba751dc6a732 /net/rose | |
parent | Merge branch 'add-functional-support-for-gigabit-ethernet-driver' (diff) | |
download | linux-c045ad2cc01e473b98771379eb58fe13560b7f70.tar.xz linux-c045ad2cc01e473b98771379eb58fe13560b7f70.zip |
ax25: constify dev_addr passing
In preparation for netdev->dev_addr being constant
make all relevant arguments in AX25 constant.
Modify callers as well (netrom, rose).
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/rose')
-rw-r--r-- | net/rose/rose_link.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/rose/rose_link.c b/net/rose/rose_link.c index f6102e6f5161..8b96a56d3a49 100644 --- a/net/rose/rose_link.c +++ b/net/rose/rose_link.c @@ -94,11 +94,11 @@ static void rose_t0timer_expiry(struct timer_list *t) */ static int rose_send_frame(struct sk_buff *skb, struct rose_neigh *neigh) { - ax25_address *rose_call; + const ax25_address *rose_call; ax25_cb *ax25s; if (ax25cmp(&rose_callsign, &null_ax25_address) == 0) - rose_call = (ax25_address *)neigh->dev->dev_addr; + rose_call = (const ax25_address *)neigh->dev->dev_addr; else rose_call = &rose_callsign; @@ -117,11 +117,11 @@ static int rose_send_frame(struct sk_buff *skb, struct rose_neigh *neigh) */ static int rose_link_up(struct rose_neigh *neigh) { - ax25_address *rose_call; + const ax25_address *rose_call; ax25_cb *ax25s; if (ax25cmp(&rose_callsign, &null_ax25_address) == 0) - rose_call = (ax25_address *)neigh->dev->dev_addr; + rose_call = (const ax25_address *)neigh->dev->dev_addr; else rose_call = &rose_callsign; |