]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
wlcore, wl1251: fix spelling: "Couldnt" -> "Couldn't" and remove error on -ENOMEM
authorColin Ian King <colin.king@canonical.com>
Fri, 1 Dec 2017 10:02:58 +0000 (10:02 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Dec 2017 13:24:32 +0000 (15:24 +0200)
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>
drivers/net/wireless/ti/wl1251/init.c
drivers/net/wireless/ti/wlcore/acx.c

index 1d799bffaa9f35ab772057beae1ba067d8b406df..e7d77acdf18c33d9b0346a97348c0d0d5b932d33 100644 (file)
@@ -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) {
index a4859993db3c600bb2cd4cadf2e30794da19f338..3ca9167d6146af610c445f358bf45b2bebd52c03 100644 (file)
@@ -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;
        }