[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211028072306.1351-1-yajun.deng@linux.dev>
Date: Thu, 28 Oct 2021 15:23:06 +0800
From: Yajun Deng <yajun.deng@...ux.dev>
To: mareklindner@...mailbox.ch, sw@...onwunderlich.de, a@...table.cc,
sven@...fation.org
Cc: b.a.t.m.a.n@...ts.open-mesh.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Yajun Deng <yajun.deng@...ux.dev>
Subject: [PATCH net-next] batman-adv: Fix the wrong definition
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@...ux.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
Powered by blists - more mailing lists