Skip to content
Commit b4201cc4 authored by Jeff Mahoney's avatar Jeff Mahoney Committed by Johannes Berg
Browse files

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: default avatarJeff Mahoney <jeffm@suse.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent f6d4671a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment