* [PATCH net-next] net: dpaa: Fix compilation Warning
@ 2024-07-12 13:48 Breno Leitao
2024-07-12 13:54 ` Vladimir Oltean
2024-07-13 23:00 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Breno Leitao @ 2024-07-12 13:48 UTC (permalink / raw)
To: Madalin Bucur, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni
Cc: leit, open list:FREESCALE QORIQ DPAA ETHERNET DRIVER, open list
Remove variables that are defined and incremented but never read.
This issue appeared in network tests[1] as:
drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c:38:6: warning: variable 'i' set but not used [-Wunused-but-set-variable]
38 | int i = 0;
| ^
Link: https://netdev.bots.linux.dev/static/nipa/870263/13729811/build_clang/stderr [1]
Signed-off-by: Breno Leitao <leitao@debian.org>
---
drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c b/drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c
index 4fee74c024bd..aad470e9caea 100644
--- a/drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c
+++ b/drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c
@@ -35,7 +35,6 @@ static ssize_t dpaa_eth_show_fqids(struct device *dev,
u32 last_fqid = 0;
ssize_t bytes = 0;
char *str;
- int i = 0;
list_for_each_entry_safe(fq, tmp, &priv->dpaa_fq_list, list) {
switch (fq->fq_type) {
@@ -85,7 +84,6 @@ static ssize_t dpaa_eth_show_fqids(struct device *dev,
prev = fq;
prevstr = str;
- i++;
}
if (prev) {
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: dpaa: Fix compilation Warning
2024-07-12 13:48 [PATCH net-next] net: dpaa: Fix compilation Warning Breno Leitao
@ 2024-07-12 13:54 ` Vladimir Oltean
2024-07-13 23:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Vladimir Oltean @ 2024-07-12 13:54 UTC (permalink / raw)
To: Breno Leitao
Cc: Madalin Bucur, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, leit, open list:FREESCALE QORIQ DPAA ETHERNET DRIVER,
open list
On Fri, Jul 12, 2024 at 06:48:16AM -0700, Breno Leitao wrote:
> Remove variables that are defined and incremented but never read.
> This issue appeared in network tests[1] as:
>
> drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c:38:6: warning: variable 'i' set but not used [-Wunused-but-set-variable]
> 38 | int i = 0;
> | ^
>
> Link: https://netdev.bots.linux.dev/static/nipa/870263/13729811/build_clang/stderr [1]
> Signed-off-by: Breno Leitao <leitao@debian.org>
> ---
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: dpaa: Fix compilation Warning
2024-07-12 13:48 [PATCH net-next] net: dpaa: Fix compilation Warning Breno Leitao
2024-07-12 13:54 ` Vladimir Oltean
@ 2024-07-13 23:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-07-13 23:00 UTC (permalink / raw)
To: Breno Leitao
Cc: madalin.bucur, davem, edumazet, kuba, pabeni, leit, netdev,
linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 12 Jul 2024 06:48:16 -0700 you wrote:
> Remove variables that are defined and incremented but never read.
> This issue appeared in network tests[1] as:
>
> drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c:38:6: warning: variable 'i' set but not used [-Wunused-but-set-variable]
> 38 | int i = 0;
> | ^
>
> [...]
Here is the summary with links:
- [net-next] net: dpaa: Fix compilation Warning
https://git.kernel.org/netdev/net-next/c/e7cdef626f1d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-13 23:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-12 13:48 [PATCH net-next] net: dpaa: Fix compilation Warning Breno Leitao
2024-07-12 13:54 ` Vladimir Oltean
2024-07-13 23:00 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox