diff options
author | Himanshu Jha <himanshujha199640@gmail.com> | 2017-08-28 16:36:02 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-29 08:24:04 +0200 |
commit | 2ad05de99f3958283d25c7147be3aaa677e95c14 (patch) | |
tree | 6d3b4e8c7b04c0ba5565786869f85e6862dfc5e7 /drivers/staging/rtl8188eu/os_dep | |
parent | 30207d7b640cd27a814abbc657c911121160dc10 (diff) | |
download | op-kernel-dev-2ad05de99f3958283d25c7147be3aaa677e95c14.zip op-kernel-dev-2ad05de99f3958283d25c7147be3aaa677e95c14.tar.gz |
staging: rtl8188eu: remove unnecessary call to memset
call to memset to assign 0 value immediately after allocating
memory with kzalloc is unnecesaary as kzalloc allocates the memory
filled with 0 value.
Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/os_dep')
-rw-r--r-- | drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c index 763eccd..c0664dc 100644 --- a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c @@ -2166,8 +2166,6 @@ static int set_group_key(struct adapter *padapter, u8 *key, u8 alg, int keyid) goto exit; } - memset(psetkeyparm, 0, sizeof(struct setkey_parm)); - psetkeyparm->keyid = (u8)keyid; psetkeyparm->algorithm = alg; |