Skip to content

Commit

Permalink
decnet: constify dev_addr passing
Browse files Browse the repository at this point in the history
In preparation for netdev->dev_addr being constant
make all relevant arguments in decnet constant.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Jakub Kicinski committed Oct 13, 2021
1 parent 6cf8628 commit 1bfcd1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/dn.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ struct dn_skb_cb {
int iif;
};

static inline __le16 dn_eth2dn(unsigned char *ethaddr)
static inline __le16 dn_eth2dn(const unsigned char *ethaddr)
{
return get_unaligned((__le16 *)(ethaddr + 4));
}
Expand Down

0 comments on commit 1bfcd1c

Please sign in to comment.