decnet: constify dev_addr passing
In preparation for netdev->dev_addr being constant make all relevant arguments in decnet constant. Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
6cf8628072
commit
1bfcd1cc54
|
@ -166,7 +166,7 @@ struct dn_skb_cb {
|
||||||
int iif;
|
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));
|
return get_unaligned((__le16 *)(ethaddr + 4));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue