diff options
author | Daniel Mack <daniel@zonque.org> | 2018-05-23 04:14:59 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-05-25 06:08:11 -0400 |
commit | a50c6c8412f7114cbb0514dbea7a5a9a3d317479 (patch) | |
tree | 8b9bfbad54a98f132b0e3e5a02747c8ae48c3ec7 /drivers/net | |
parent | 773f9a28bcdafd6cb77fb1afc545c62746d53990 (diff) |
wcn36xx: simplify wcn36xx_smd_open()
Drop the extra warning about failed allocations, both the core and the
only caller of this function will warn loud enough in such cases.
Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/wcn36xx/smd.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index 0a505b5e038b..43c8aa79fad4 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c | |||
@@ -2494,21 +2494,15 @@ static void wcn36xx_ind_smd_work(struct work_struct *work) | |||
2494 | } | 2494 | } |
2495 | int wcn36xx_smd_open(struct wcn36xx *wcn) | 2495 | int wcn36xx_smd_open(struct wcn36xx *wcn) |
2496 | { | 2496 | { |
2497 | int ret = 0; | ||
2498 | wcn->hal_ind_wq = create_freezable_workqueue("wcn36xx_smd_ind"); | 2497 | wcn->hal_ind_wq = create_freezable_workqueue("wcn36xx_smd_ind"); |
2499 | if (!wcn->hal_ind_wq) { | 2498 | if (!wcn->hal_ind_wq) |
2500 | wcn36xx_err("failed to allocate wq\n"); | 2499 | return -ENOMEM; |
2501 | ret = -ENOMEM; | 2500 | |
2502 | goto out; | ||
2503 | } | ||
2504 | INIT_WORK(&wcn->hal_ind_work, wcn36xx_ind_smd_work); | 2501 | INIT_WORK(&wcn->hal_ind_work, wcn36xx_ind_smd_work); |
2505 | INIT_LIST_HEAD(&wcn->hal_ind_queue); | 2502 | INIT_LIST_HEAD(&wcn->hal_ind_queue); |
2506 | spin_lock_init(&wcn->hal_ind_lock); | 2503 | spin_lock_init(&wcn->hal_ind_lock); |
2507 | 2504 | ||
2508 | return 0; | 2505 | return 0; |
2509 | |||
2510 | out: | ||
2511 | return ret; | ||
2512 | } | 2506 | } |
2513 | 2507 | ||
2514 | void wcn36xx_smd_close(struct wcn36xx *wcn) | 2508 | void wcn36xx_smd_close(struct wcn36xx *wcn) |