Files
linux/drivers
Johannes Berg 0ec971fdad iwlwifi: remove resp_pkt NULL checks
Contrary to what some of the comments say, if rfkill was
asserted the transport will return -ERFKILL instead of
success, if CMD_WANT_SKB was set, so it's not necessary
to check cmd.resp_pkt for being NULL if the return code
was success.

Validate that this is true in iwl_trans_send_cmd().

Most of the other code modifications were done with the
following spatch:
    @@
    struct iwl_host_cmd cmd;
    identifier pkt;
    @@
    <...
    (
    pkt = cmd.resp_pkt;
    ...
    -if (!pkt) { ... }
    |
    pkt = cmd.resp_pkt;
    ...
    -if (WARN_ON(!pkt)) { ... }
    |
    -if (!cmd.resp_pkt) { ... }
    )
    ...>

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2017-06-23 00:12:59 +03:00
..
2017-06-03 00:01:45 +02:00
2017-06-09 15:49:02 -04:00
2017-04-27 11:54:49 +01:00
2017-05-28 10:22:42 -07:00
2017-06-23 00:12:59 +03:00
2017-04-17 00:42:22 +02:00
2017-04-20 09:54:24 +02:00
2017-04-10 16:43:41 +05:30
2017-05-18 23:54:47 -07:00
2017-06-04 10:23:25 +02:00