* [PATCH net-next] x25: specifying bcast_addr array size using macro
@ 2024-09-05 13:12 Jeongjun Park
2024-09-07 1:27 ` Jakub Kicinski
0 siblings, 1 reply; 2+ messages in thread
From: Jeongjun Park @ 2024-09-05 13:12 UTC (permalink / raw)
To: ms
Cc: davem, edumazet, kuba, pabeni, linux-x25, netdev, linux-kernel,
Jeongjun Park
It is more appropriate to specify the size of the bcast_addr array using
ETH_ALEN macro.
Signed-off-by: Jeongjun Park <aha310510@gmail.com>
---
drivers/net/wan/lapbether.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c
index 56326f38fe8a..15e4ca43e88b 100644
--- a/drivers/net/wan/lapbether.c
+++ b/drivers/net/wan/lapbether.c
@@ -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.
--
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-07 1:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-05 13:12 [PATCH net-next] x25: specifying bcast_addr array size using macro Jeongjun Park
2024-09-07 1:27 ` Jakub Kicinski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).