Skip to content

Commit e7cdef6

Browse files
leitaokuba-moo
authored andcommitted
net: dpaa: Fix compilation Warning
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 <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 3771266 commit e7cdef6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ static ssize_t dpaa_eth_show_fqids(struct device *dev,
3535
u32 last_fqid = 0;
3636
ssize_t bytes = 0;
3737
char *str;
38-
int i = 0;
3938

4039
list_for_each_entry_safe(fq, tmp, &priv->dpaa_fq_list, list) {
4140
switch (fq->fq_type) {
@@ -85,7 +84,6 @@ static ssize_t dpaa_eth_show_fqids(struct device *dev,
8584

8685
prev = fq;
8786
prevstr = str;
88-
i++;
8987
}
9088

9189
if (prev) {

0 commit comments

Comments
 (0)