]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: usb: sr9700: use ETH_ALEN instead of magic number
authorEthan Nelson-Moore <enelsonmoore@gmail.com>
Fri, 23 Jan 2026 07:06:39 +0000 (23:06 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sun, 25 Jan 2026 23:01:04 +0000 (15:01 -0800)
commitc2e99887807eb1b4fea7e5f63bbd6b5512879293
tree17ea479b1dd38bb182ce7a03454f259b020867a4
parent6290f7e71ba792ba796a2d781e8bdda4622f0002
net: usb: sr9700: use ETH_ALEN instead of magic number

The driver hardcodes the number 6 as the number of bytes to write to
the SR_PAR register, which stores the MAC address. Use ETH_ALEN instead
to make the code clearer.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Peter Korsgaard <peter@korsgaard.com>
Link: https://patch.msgid.link/20260123070645.56434-1-enelsonmoore@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/sr9700.c