ath9k: dynack: check da->enabled first in sampling routines
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Fri, 2 Nov 2018 20:49:57 +0000 (21:49 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 6 Nov 2018 16:26:39 +0000 (18:26 +0200)
commit9d3d65a91f027b8a9af5e63752d9b78cb10eb92d
treec2ddb7bf6bb492347d04edb8838587c37b189567
parent5e3d4718b1574c8634b45965307dee20a6c921a1
ath9k: dynack: check da->enabled first in sampling routines

Check da->enabled flag first in ath_dynack_sample_tx_ts and
ath_dynack_sample_ack_ts routines in order to avoid useless
processing

Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/dynack.c