patch 'bus/fslmc: remove unused device count' has been queued to stable release 19.11.11

christian.ehrhardt at canonical.com christian.ehrhardt at canonical.com
Tue Nov 30 17:35:38 CET 2021


Hi,

FYI, your patch has been queued to stable release 19.11.11

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before December 10th 2021. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/cpaelzer/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/cpaelzer/dpdk-stable-queue/commit/8b0fbea116a32034fe10bedb260aa1eb2859e3e6

Thanks.

Christian Ehrhardt <christian.ehrhardt at canonical.com>

---
>From 8b0fbea116a32034fe10bedb260aa1eb2859e3e6 Mon Sep 17 00:00:00 2001
From: Conor Walsh <conor.walsh at intel.com>
Date: Mon, 15 Nov 2021 17:58:51 +0000
Subject: [PATCH] bus/fslmc: remove unused device count

[ upstream commit 54d109b5643002d4368a7355af5fa623aede330a ]

Reported by clang 13.
This patch removes the device_count variable from the rte_fslmc_scan
function within the fslmc bus driver as it is an unused but set variable.

Bugzilla ID: 881
Fixes: 828d51d8fc3e ("bus/fslmc: refactor scan and probe functions")

Reported-by: Liang Longfeng <longfengx.liang at intel.com>
Signed-off-by: Conor Walsh <conor.walsh at intel.com>
Reviewed-by: David Marchand <david.marchand at redhat.com>
---
 drivers/bus/fslmc/fslmc_bus.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c
index 7431177f2e..727015fdc3 100644
--- a/drivers/bus/fslmc/fslmc_bus.c
+++ b/drivers/bus/fslmc/fslmc_bus.c
@@ -308,7 +308,6 @@ static int
 rte_fslmc_scan(void)
 {
 	int ret;
-	int device_count = 0;
 	char fslmc_dirpath[PATH_MAX];
 	DIR *dir;
 	struct dirent *entry;
@@ -342,7 +341,6 @@ rte_fslmc_scan(void)
 			/* Error in parsing directory - exit gracefully */
 			goto scan_fail_cleanup;
 		}
-		device_count += 1;
 	}
 
 	closedir(dir);
-- 
2.34.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-11-30 16:50:13.704246860 +0100
+++ 0134-bus-fslmc-remove-unused-device-count.patch	2021-11-30 16:50:05.970874851 +0100
@@ -1 +1 @@
-From 54d109b5643002d4368a7355af5fa623aede330a Mon Sep 17 00:00:00 2001
+From 8b0fbea116a32034fe10bedb260aa1eb2859e3e6 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 54d109b5643002d4368a7355af5fa623aede330a ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -22 +23 @@
-index ac3cb4aa5a..a0ef24cdc8 100644
+index 7431177f2e..727015fdc3 100644
@@ -25 +26 @@
-@@ -315,7 +315,6 @@ static int
+@@ -308,7 +308,6 @@ static int
@@ -33 +34 @@
-@@ -349,7 +348,6 @@ rte_fslmc_scan(void)
+@@ -342,7 +341,6 @@ rte_fslmc_scan(void)


More information about the stable mailing list