Skip to content

Commit

Permalink
wlcore, wl1251: fix spelling: "Couldnt" -> "Couldn't" and remove erro…
Browse files Browse the repository at this point in the history
…r on -ENOMEM

Trivial fix to spelling mistake in error message text.  Also remove the
error message on an kzalloc failure as this is redundant.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  • Loading branch information
Colin Ian King authored and Kalle Valo committed Dec 7, 2017
1 parent 37bf241 commit c4ee30a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions drivers/net/wireless/ti/wl1251/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,8 @@ static int wl1251_hw_init_data_path_config(struct wl1251 *wl)
/* asking for the data path parameters */
wl->data_path = kzalloc(sizeof(struct acx_data_path_params_resp),
GFP_KERNEL);
if (!wl->data_path) {
wl1251_error("Couldnt allocate data path parameters");
if (!wl->data_path)
return -ENOMEM;
}

ret = wl1251_acx_data_path_params(wl, wl->data_path);
if (ret < 0) {
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/ti/wlcore/acx.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ int wl1271_acx_feature_cfg(struct wl1271 *wl, struct wl12xx_vif *wlvif)
ret = wl1271_cmd_configure(wl, ACX_FEATURE_CFG,
feature, sizeof(*feature));
if (ret < 0) {
wl1271_error("Couldnt set HW encryption");
wl1271_error("Couldn't set HW encryption");
goto out;
}

Expand Down

0 comments on commit c4ee30a

Please sign in to comment.