Skip to content

Commit

Permalink
bus/fslmc: remove unused device count
Browse files Browse the repository at this point in the history
[ upstream commit 54d109b ]

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: 828d51d ("bus/fslmc: refactor scan and probe functions")

Reported-by: Liang Longfeng <longfengx.liang@intel.com>
Signed-off-by: Conor Walsh <conor.walsh@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
conorwalsh-intel authored and cpaelzer committed Nov 30, 2021
1 parent 962fa4d commit 8b0fbea
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/bus/fslmc/fslmc_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -342,7 +341,6 @@ rte_fslmc_scan(void)
/* Error in parsing directory - exit gracefully */
goto scan_fail_cleanup;
}
device_count += 1;
}

closedir(dir);
Expand Down

0 comments on commit 8b0fbea

Please sign in to comment.