wlcore, wl1251: fix spelling: "Couldnt" -> "Couldn't" and remove error 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>
This commit is contained in:
parent
37bf241b8e
commit
c4ee30a280
|
@ -310,10 +310,8 @@ static int wl1251_hw_init_data_path_config(struct wl1251 *wl)
|
||||||
/* asking for the data path parameters */
|
/* asking for the data path parameters */
|
||||||
wl->data_path = kzalloc(sizeof(struct acx_data_path_params_resp),
|
wl->data_path = kzalloc(sizeof(struct acx_data_path_params_resp),
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
if (!wl->data_path) {
|
if (!wl->data_path)
|
||||||
wl1251_error("Couldnt allocate data path parameters");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
ret = wl1251_acx_data_path_params(wl, wl->data_path);
|
ret = wl1251_acx_data_path_params(wl, wl->data_path);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
|
|
@ -146,7 +146,7 @@ int wl1271_acx_feature_cfg(struct wl1271 *wl, struct wl12xx_vif *wlvif)
|
||||||
ret = wl1271_cmd_configure(wl, ACX_FEATURE_CFG,
|
ret = wl1271_cmd_configure(wl, ACX_FEATURE_CFG,
|
||||||
feature, sizeof(*feature));
|
feature, sizeof(*feature));
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
wl1271_error("Couldnt set HW encryption");
|
wl1271_error("Couldn't set HW encryption");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue