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:03:29 +02:00
2017-05-31 14:26:26 -04:00
2017-04-12 21:59:01 -07:00
2017-05-22 20:32:05 +02:00
2017-06-02 12:03:07 -07:00
2017-05-23 19:54:55 +02:00
2017-04-20 12:16:10 -06:00
2017-06-02 16:19:47 -07:00
2017-05-10 13:38:18 -07:00
2017-05-12 10:43:25 -07:00
2017-06-03 00:01:45 +02:00
2017-05-09 23:21:46 +02:00
2017-05-10 11:33:08 -07:00
2017-05-13 16:18:21 -07:00
2017-04-12 12:42:14 +09:00
2017-06-02 11:49:44 +05:30
2017-04-20 13:47:46 +05:30
2017-05-03 16:27:36 +02:00
2017-04-06 11:12:45 +09:00
2017-06-02 08:51:53 -07:00
2017-04-26 11:38:56 +02:00
2017-05-10 19:13:03 -07:00
2017-06-02 11:32:38 -07:00
2017-06-02 09:23:56 -07:00
2017-04-21 17:58:45 +02:00
2017-05-04 19:15:35 -07:00
2017-06-03 03:55:43 -07:00
2017-05-08 17:15:14 -07:00
2017-05-22 19:22:19 -07:00
2017-05-08 17:36:39 -04:00
2017-05-01 23:17:37 +02:00
2017-05-10 19:13:03 -07:00
2017-06-09 15:49:02 -04:00
2017-06-02 17:53:20 -07:00
2017-05-17 14:51:54 +02:00
2017-05-21 11:45:26 -07:00
2017-06-08 11:32:53 -04:00
2017-05-22 21:12:44 +02:00
2017-05-04 07:53:04 -06:00
2017-05-05 19:33:07 -07:00
2017-04-27 16:20:04 +05:30
2017-06-02 11:50:37 -07:00
2017-06-06 09:37:44 -07:00
2017-05-16 08:12:47 -07:00
2017-04-24 18:21:17 -04:00
2017-04-27 11:54:49 +01:00
2017-05-28 10:22:42 -07:00
2017-05-26 09:05:35 -07:00
2017-05-22 09:42:29 +02: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-05-12 15:43:10 -07:00
2017-05-26 11:53:02 +03:00
2017-05-09 10:01:15 -07:00
2017-05-24 08:21:56 -07:00
2017-04-20 12:02:32 +01:00
2017-05-23 14:18:17 -05:00
2017-05-10 19:13:03 -07:00
2017-05-30 12:40:03 +01:00
2017-04-10 16:43:41 +05:30
2017-05-23 11:31:27 +02:00
2017-05-04 19:15:35 -07:00
2017-05-12 12:02:21 -07:00
2017-05-14 13:30:05 +02:00
2017-05-01 16:15:18 -07:00
2017-04-13 17:41:50 +02:00
2017-05-04 19:15:35 -07:00
2017-04-30 22:17:44 +09:00
2017-05-10 11:33:08 -07:00
2017-05-09 10:01:15 -07:00
2017-05-10 11:33:08 -07:00
2017-05-22 20:32:05 +02:00
2017-06-06 13:05:01 -04:00
2017-06-07 15:14:34 -04:00
2017-05-19 13:36:56 -07:00
2017-04-26 15:58:22 +01:00
2017-05-24 16:46:51 +03:00
2017-06-04 15:23:32 -03:00
2017-06-07 15:14:34 -04:00
2017-05-18 23:54:47 -07:00
2017-05-23 20:09:34 -07:00
2017-06-04 10:23:25 +02:00
2017-05-16 23:06:41 +02:00
2017-05-19 10:10:07 +02:00
2017-05-17 11:27:41 +02:00
2017-05-05 11:36:44 -07:00
2017-05-18 10:07:42 -04:00
2017-05-11 11:12:26 -07:00
2017-05-08 17:15:10 -07:00
2017-05-02 23:41:43 +03:00
2017-04-08 18:20:57 +02:00
2017-05-19 10:42:25 +02:00
2017-05-09 09:12:53 -07:00
2017-05-10 21:03:31 +02:00