Thread (2 messages) 2 messages, 2 authors, 2021-04-30

Re: [PATCH] mac80211: Remove redundant assignment to ret

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2021-04-30 11:36:45
Also in: lkml, netdev

On Fri, 2021-04-30 at 17:21 +0800, Yang Li wrote:
Variable 'ret' is set to -ENODEV but this value is never read as it
is overwritten with a new value later on, hence it is a redundant
assignment and can be removed.

Clean up the following clang-analyzer warning:

net/mac80211/debugfs_netdev.c:60:2: warning: Value stored to 'ret' is
never read [clang-analyzer-deadcode.DeadStores]
Can you just turn that warning off?

It's really quite pointless to churn the tree for effectively nothing.

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help