UPSTREAM: 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)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 19 May 2016 07:05:53 +0000 (12:35 +0530)
commit63a2b92307eb8fff4451ae58ca937dd6aa899469
tree649f7b60579c0eef79e2ddbbe7138009948d95cf
parentaacf3ae2a6caae8dfc7d4a41a9f537674613831c
UPSTREAM: mac80211: fix "warning: ‘target_metric’ may be used uninitialized"

(This cherry-picks b4201cc4fc6e1c57d6d306b1f787865043d60129 upstream)

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.

Change-Id: I13923fda9d314f48196c29e4354133dfe01f5abd
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
[jstultz: Cherry-picked to android-4.4]
Signed-off-by: John Stultz <john.stultz@linaro.org>
net/mac80211/mesh_hwmp.c