Silence uninitialized variable warning
authorJoe Korty <joe.korty@ccur.com>
Wed, 25 May 2016 12:58:56 +0000 (17:58 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Sun, 17 Jul 2016 21:00:03 +0000 (14:00 -0700)
commit363322c08a4eed1e4fa5536274f8962198c603a8
tree8f1e7d6cc039cbfca0b9b807e7bdbfd24fc77fd0
parent5f10794c3473643954f6eb5ca51547c9f3c658b6
Silence uninitialized variable warning

When we go through the switch() case
where 'send_direct' is not initialized, the
code later on that uses 'send_direct' will
be skipped over.  So it is safe to set this
'send_direct' to any value we want in order
to quiet this gcc warning.

net/mac80211/cfg.c: In function 'ieee80211_tdls_mgmt':
net/mac80211/cfg.c:3225:5: warning:
'send_direct' may be used uninitialized in this
function [-Wmaybe-uninitialized]
if (send_direct) {

Bug 200187768

Change-Id: I01128d4682898b01e0512881029497821bc93201
Signed-off-by: Joe Korty <joe.korty@ccur.com>
Signed-off-by: Gaurav Singh <gaursingh@nvidia.com>
Reviewed-on: http://git-master/r/1163942
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
net/mac80211/cfg.c