netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] batman-adv: Fix the wrong definition
@ 2021-10-28  7:23 Yajun Deng
  2021-10-28  7:34 ` Sven Eckelmann
  2021-10-28  7:35 ` Antonio Quartulli
  0 siblings, 2 replies; 4+ messages in thread
From: Yajun Deng @ 2021-10-28  7:23 UTC (permalink / raw)
  To: mareklindner, sw, a, sven; +Cc: b.a.t.m.a.n, netdev, linux-kernel, Yajun Deng

There are three variables that are required at most,
no need to define four variables.

Fixes: 0fa4c30d710d ("batman-adv: Make sysfs support optional")
Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
---
 net/batman-adv/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/batman-adv/main.c b/net/batman-adv/main.c
index 3ddd66e4c29e..758035b3796d 100644
--- a/net/batman-adv/main.c
+++ b/net/batman-adv/main.c
@@ -656,7 +656,7 @@ int batadv_throw_uevent(struct batadv_priv *bat_priv, enum batadv_uev_type type,
 {
 	int ret = -ENOMEM;
 	struct kobject *bat_kobj;
-	char *uevent_env[4] = { NULL, NULL, NULL, NULL };
+	char *uevent_env[3] = {};
 
 	bat_kobj = &bat_priv->soft_iface->dev.kobj;
 
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-28  7:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-28  7:23 [PATCH net-next] batman-adv: Fix the wrong definition Yajun Deng
2021-10-28  7:34 ` Sven Eckelmann
2021-10-28  7:35 ` Antonio Quartulli
2021-10-28  7:49   ` yajun.deng

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).