iwlwifi: simplify data tracepoint
authorJohannes Berg <johannes.berg@intel.com>
Wed, 3 May 2017 10:53:22 +0000 (12:53 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 23 Jun 2017 08:57:20 +0000 (11:57 +0300)
commit78c1acf35fcd528ff4c76057d5724ac00e0f7fff
tree535c9e888d733fc3ccaa759071e4bfc0cefa3b49
parent550aba9b8dce109725a87cdcc8268f56dfd32af0
iwlwifi: simplify data tracepoint

There's no need to calculate the data_len outside of the tracepoint,
since it's always skb->len - hdr_len, which are both available inside.
Simplify the callers and move the calculation in.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-devtrace-data.h
drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c
drivers/net/wireless/intel/iwlwifi/pcie/tx.c