diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2013-04-16 09:40:54 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-18 07:29:10 -0400 |
commit | a6db00613bd6a0c631848b0debe1d3f7ce67c77d (patch) | |
tree | ebb8c96c2a95236b02a4e079fc4d1119ae8c2a1f /drivers/net/wireless/iwlwifi/dvm/debugfs.c | |
parent | 3309ccf7fcebceef540ebe90c65d2f94d745a45b (diff) |
iwlwifi: remove redundant argument from iwl_dump_nic_event_log
We can check buf against NULL instead of having additional bool
variable.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/dvm/debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/debugfs.c b/drivers/net/wireless/iwlwifi/dvm/debugfs.c index cb6dd5813fbc..17f04de272d8 100644 --- a/drivers/net/wireless/iwlwifi/dvm/debugfs.c +++ b/drivers/net/wireless/iwlwifi/dvm/debugfs.c | |||
@@ -2240,7 +2240,7 @@ static ssize_t iwl_dbgfs_log_event_read(struct file *file, | |||
2240 | char *buf = NULL; | 2240 | char *buf = NULL; |
2241 | ssize_t ret; | 2241 | ssize_t ret; |
2242 | 2242 | ||
2243 | ret = iwl_dump_nic_event_log(priv, true, &buf, true); | 2243 | ret = iwl_dump_nic_event_log(priv, true, &buf); |
2244 | if (ret < 0) | 2244 | if (ret < 0) |
2245 | goto err; | 2245 | goto err; |
2246 | ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); | 2246 | ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); |
@@ -2269,7 +2269,7 @@ static ssize_t iwl_dbgfs_log_event_write(struct file *file, | |||
2269 | if (sscanf(buf, "%d", &event_log_flag) != 1) | 2269 | if (sscanf(buf, "%d", &event_log_flag) != 1) |
2270 | return -EFAULT; | 2270 | return -EFAULT; |
2271 | if (event_log_flag == 1) | 2271 | if (event_log_flag == 1) |
2272 | iwl_dump_nic_event_log(priv, true, NULL, false); | 2272 | iwl_dump_nic_event_log(priv, true, NULL); |
2273 | 2273 | ||
2274 | return count; | 2274 | return count; |
2275 | } | 2275 | } |