You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.9 KiB
56 lines
1.9 KiB
From 539be87d83e96b3624d80bcee8d3bd5996a1ce87 Mon Sep 17 00:00:00 2001
|
|
From: Igor Russkikh <irusskik@redhat.com>
|
|
Date: Fri, 6 Nov 2020 18:36:47 -0500
|
|
Subject: [PATCH 030/139] [netdrv] net: aquantia: fix var initialization
|
|
warning
|
|
|
|
Message-id: <1604687916-15087-31-git-send-email-irusskik@redhat.com>
|
|
Patchwork-id: 338449
|
|
Patchwork-instance: patchwork
|
|
O-Subject: [RHEL8.4 BZ 1857861 030/139] net: aquantia: fix var initialization warning
|
|
Bugzilla: 1857861
|
|
RH-Acked-by: David Arcari <darcari@redhat.com>
|
|
RH-Acked-by: John Linville <linville@redhat.com>
|
|
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
|
|
|
|
Bugzilla: http://bugzilla.redhat.com/1857861
|
|
|
|
commit bb1eded18d139c815f39abb77390a7040fb24b04
|
|
Author: Igor Russkikh <Igor.Russkikh@aquantia.com>
|
|
Date: Sat Oct 26 11:05:31 2019 +0000
|
|
|
|
net: aquantia: fix var initialization warning
|
|
|
|
found by sparse, simply useless local initialization with zero.
|
|
|
|
Fixes: 94ad94558b0f ("net: aquantia: add PTP rings infrastructure")
|
|
Reported-by: kbuild test robot <lkp@intel.com>
|
|
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
|
|
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
|
|
Signed-off-by: Igor Russkikh <irusskik@redhat.com>
|
|
|
|
Cc: David Arcari <darcari@redhat.com>
|
|
Cc: Igor Russkikh <irusskik@redhat.com>
|
|
Signed-off-by: Jan Stancek <jstancek@redhat.com>
|
|
---
|
|
drivers/net/ethernet/aquantia/atlantic/aq_ptp.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_ptp.c b/drivers/net/ethernet/aquantia/atlantic/aq_ptp.c
|
|
index 3ec08415e53e..bb6fbbadfd47 100644
|
|
--- a/drivers/net/ethernet/aquantia/atlantic/aq_ptp.c
|
|
+++ b/drivers/net/ethernet/aquantia/atlantic/aq_ptp.c
|
|
@@ -947,7 +947,7 @@ int aq_ptp_ring_alloc(struct aq_nic_s *aq_nic)
|
|
{
|
|
struct aq_ptp_s *aq_ptp = aq_nic->aq_ptp;
|
|
unsigned int tx_ring_idx, rx_ring_idx;
|
|
- struct aq_ring_s *hwts = 0;
|
|
+ struct aq_ring_s *hwts;
|
|
u32 tx_tc_mode, rx_tc_mode;
|
|
struct aq_ring_s *ring;
|
|
int err;
|
|
--
|
|
2.13.6
|
|
|