]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix "warning: ‘target_metric’ may be used uninitialized"
authorJeff Mahoney <jeffm@suse.com>
Mon, 4 Apr 2016 18:15:23 +0000 (14:15 -0400)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Apr 2016 13:10:25 +0000 (15:10 +0200)
commitb1a4b955a0f13f034a49830a9d125e03db8eb04e
treed035ab25e1fdcb06bcad0f95e4ab1bf4398a17af
parente6ff5365baf3e8daad260abfa4e04ca743de75b3
mac80211: fix "warning: ‘target_metric’ may be used uninitialized"

This fixes:

net/mac80211/mesh_hwmp.c:603:26: warning: ‘target_metric’ may be used uninitialized in this function

target_metric is only consumed when reply = true so no bug exists here,
but not all versions of gcc realize it.  Initialize to 0 to remove the
warning.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_hwmp.c