iwlwifi: remove unnecessary code in iwl_trans_alloc_tx_cmd
authorLuca Coelho <luciano.coelho@intel.com>
Wed, 5 Apr 2017 06:42:18 +0000 (09:42 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 5 Jun 2017 20:34:31 +0000 (23:34 +0300)
commit0ae0bb3f409d48251a9a1730a514b3521d8f6042
tree0bceef8fadf464554b80390caaedb822792bba9e
parentb7e94bab81dc9cba5269542b2da524fc749078af
iwlwifi: remove unnecessary code in iwl_trans_alloc_tx_cmd

When we removed dev_cmd_headroom, the check for dev_cmd_ptr == NULL
became unnecessary, since we just return dev_cmd_ptr anyway.  Cleanup
the function to avoid useless code.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-trans.h