Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp493084pxx; Wed, 28 Oct 2020 09:33:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGwMEAC+Y++KBOHrV51Gf9HbqS37EknyDt9BcosNKG4PpKc8uHW4prFHdT6NrUh+a+iGiC X-Received: by 2002:a50:e79d:: with SMTP id b29mr8663282edn.57.1603902820684; Wed, 28 Oct 2020 09:33:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603902820; cv=none; d=google.com; s=arc-20160816; b=vpXzg3CHEGHvX8pRbYsZgOdQ1iUeL6ADP6x5j+V9+FWrOmQJcJuMe7Zy95xHOv6/Oa SAso0s5+ue1kZgP7u/qWFfk1SYJFU3WEeQGT1FphEmL1acdlNCxRvet9ee/G1VlOrvgb dYug/iSPuHyBVe+P9zzFQpLCE0rLSJIoAkIH84IYcV3FFVWaQFU8zNbpfRqeBU92nuAI WAez+N4QFJ+eBNxU2yPcnTbZxlxPCYuj3jOtlaeohCiwOGKxLKY0fl7RwFFDZEcR81Ee /eSg56eJGHwoZtko/dBFpHWbstTqWq1mONFP1zLmC83Jd1dun1+5W1rkremKj5GkzMnO 8+nQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=R64Mn6XslkagXLF87r3P9LvFi7kNSklaMKw6t7HGVDU=; b=WcKQLPyzXZcBX1hMoWi5ErPzKPxd59lU1FhFga9FUo0bn4VYhGcRDwXsapoWoKSBB2 qwKfaxYYf6OYglx/2116HYRSyhXE7/g8QP9OOdJJomqEtsY+yfxFqxIVNdfqiARNZdak ul5RihjsCJhsaJWx156K2oyET1ftl/PqRxHEv7d14IYaTFqkaFT8nqiDVGqILaZR0zG1 hoMmYlwBdOrO86Fy10cAC35tIAgKi25gxnHA1nBhfJoamTT3Uv036EBlkDJr84YifhQQ hP5qS0eAyaOzJ6tdH6SFeYolWCBkBnwDJEQfXKgibfaPwN0Kdz2NVahS2gphoC+fqb5r vL+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qiLbMWJ5; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si3851870edr.541.2020.10.28.09.33.17; Wed, 28 Oct 2020 09:33:40 -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=@kernel.org header.s=default header.b=qiLbMWJ5; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1817147AbgJ0RNo (ORCPT + 99 others); Tue, 27 Oct 2020 13:13:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:60636 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1784348AbgJ0O7F (ORCPT ); Tue, 27 Oct 2020 10:59:05 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3541C20715; Tue, 27 Oct 2020 14:59:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810744; bh=g6662p8Edt5EtwqkbxwwpMysMMF690KW2qzmhtPxZgQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qiLbMWJ5494Uus/qEnu2aMdB9Qqvm2GgqGHaCoLUy5XDZs8Vlz8joOfdOsm57WQH1 h7U80Nkj5BtYOrgWa5HuP93D2LpLSLfkuLh+ECUc71SmR3z8MUQ3AlS4zK7Fig7WMN /oOyBZqR9bi1by7tb0SUJMD3CrLmNUKsLD9VpLFo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Moshe Tal , Aya Levin , Saeed Mahameed , Sasha Levin Subject: [PATCH 5.8 217/633] net/mlx5: Fix uninitialized variable warning Date: Tue, 27 Oct 2020 14:49:20 +0100 Message-Id: <20201027135532.864546324@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Moshe Tal [ Upstream commit 19f5b63bc9932d51292d72c9dc3ec95e5dfa2289 ] Add variable initialization to eliminate the warning "variable may be used uninitialized". Fixes: 5f29458b77d5 ("net/mlx5e: Support dump callback in TX reporter") Signed-off-by: Moshe Tal Reviewed-by: Aya Levin Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/en/health.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/health.c b/drivers/net/ethernet/mellanox/mlx5/core/en/health.c index 7283443868f3c..13c87ab50b267 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/health.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/health.c @@ -212,8 +212,8 @@ static int mlx5e_health_rsc_fmsg_binary(struct devlink_fmsg *fmsg, { u32 data_size; + int err = 0; u32 offset; - int err; for (offset = 0; offset < value_len; offset += data_size) { data_size = value_len - offset; -- 2.25.1