Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1284375pxb; Thu, 28 Oct 2021 00:24:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5zJseP0nvlP1pXdNPz1QoPh/kGd2n7adzgr8XRCrzud3q+BYKUG3jwy1waPNrr+UHVxzA X-Received: by 2002:a63:a01a:: with SMTP id r26mr1987264pge.88.1635405876091; Thu, 28 Oct 2021 00:24:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635405876; cv=none; d=google.com; s=arc-20160816; b=zwK6OfcvCYjgQu90EGUq6noLeZKGts08OCkxK17PCa8UQ2PX8gaCuUY2KrKYdUgGMo STBcWLfsKfCB1cnxPGxyJZiFNy5jQMNgNWS7p4X0m66uAm4oyh1E8uS1ZbLBjxwFpLCT SclpqP+IG3eJumNtqcc0dtZGpgiiOzSy00s9sHzBrI4I3ya665yc11HPfWSiu9gC0UGh s2QBlNWtJ+B+b3OmR77Nfdp6QSGyPZC+xvkaReNVfbIpVlfwMLdDwjPt3CpzDhFYEQXS 1cPBOaXqRvL2LwiCepTZcIASJ5njXXzfaHagd8I3jIT57XNo/eOtyuQkwzZE/1sO6bB/ aMlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VXi3Ela0bU7orviuWeiG2NP6r/UtKWhGLoJui6UniIo=; b=KOCeBmb21dzFmsujDUiNmcn8AvEaUuBBiuReFiBXN+SLlAYU6XlmZnc8cSVswadHQ2 tQwjCSluaOyORdfyqUOXw8N7BkWFAnZs0f7klr8U3JCIa68nfuRGWPRGcm7Z4e0T1bQc DLkVduN1M2mIHtRlK5YJTnVztNiPMMegUCYdkea++JucTPguejzUNLnnciCVTMMCVQym OptmoJTxCsjSRylGkZtKyrjdfpIVOT0nOyLs5JYwROzRUX7LjrxOnkDPzvR13i6hwRO+ 2M8AzVEcEzPG20ofAYP6MZ1mm6rNuFTTiD3rFcP8j2jdQBLefRjLMUtzol/WlVkfDfA1 hZig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=gEo8rej7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p2si3188859plf.157.2021.10.28.00.24.23; Thu, 28 Oct 2021 00:24:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=gEo8rej7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229809AbhJ1HZw (ORCPT + 99 others); Thu, 28 Oct 2021 03:25:52 -0400 Received: from out0.migadu.com ([94.23.1.103]:33252 "EHLO out0.migadu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229768AbhJ1HZw (ORCPT ); Thu, 28 Oct 2021 03:25:52 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1635405804; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=VXi3Ela0bU7orviuWeiG2NP6r/UtKWhGLoJui6UniIo=; b=gEo8rej7fcIJJsGfWYod+i8Qe60d17Q14LswQJrg0kV9fFg6b3tLKKCV98fH6q2KKLx04N M9TkeCam5MX4lSf70Cq3DKhyfW1aEDC35SemQ9tP6mU0Z/6KRb7jnVX2SlpAMx1mfyz6hP WOnAsS4O5gh8lvgAPLI3HYQyRjVAAwk= From: Yajun Deng To: mareklindner@neomailbox.ch, sw@simonwunderlich.de, a@unstable.cc, sven@narfation.org Cc: b.a.t.m.a.n@lists.open-mesh.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Yajun Deng Subject: [PATCH net-next] batman-adv: Fix the wrong definition Date: Thu, 28 Oct 2021 15:23:06 +0800 Message-Id: <20211028072306.1351-1-yajun.deng@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: yajun.deng@linux.dev Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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