fix a sparse warning and do some clean up.
iwctl.c:1846:35: expected restricted gfp_t [usertype] flags
Signed-off-by: Jimmy Li <coder.liss@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        size_t seq_len = 0, key_len = 0;
 //
        // int ii;
-       u8 *buf;
-       size_t blen;
        u8 key_array[64];
        int ret = 0;
 
        PRINT_K("SIOCSIWENCODEEXT...... \n");
 
-       blen = sizeof(*param);
-       buf = kmalloc((int)blen, (int)GFP_KERNEL);
-       if (buf == NULL)
+       param = kzalloc(sizeof(*param), GFP_KERNEL);
+       if (param == NULL)
                return -ENOMEM;
-       memset(buf, 0, blen);
-       param = (struct viawget_wpa_param *)buf;
 
 //recover alg_name
        switch (ext->alg) {