Skip to contentSkip to conversation

x25: specifying bcast_addr array size using macro

PATCH In review Jeongjun Park 2 participants 2 messages Sep 5, 2024 – Sep 7, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x25: specifying bcast_addr array size using macro

It is more appropriate to specify the size of the bcast_addr array using ETH_ALEN macro.

---
 drivers/net/wan/lapbether.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wan/lapbether.c +1 -1
index 56326f38fe8a..15e4ca43e88b 100644
@@ -41,7 +41,7 @@
 
 #include <net/x25device.h>
 
-static const u8 bcast_addr[6] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
+static const u8 bcast_addr[ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
 
 /* If this number is made larger, check that the temporary string buffer
  * in lapbeth_new_device is large enough to store the probe device name.

--

maintainer
#1 lore raw
Quoted 2 lines · On Thu, 5 Sep 2024 22:12:41 +0900 Jeongjun Park wrote:

It is more appropriate to specify the size of the bcast_addr array using ETH_ALEN macro.

Not worth committing, sorry

Signature · 1 line
pw-bot: reject