Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

KEYS: remove redundant memset

Reviewing use of memset in keyctl_pkey.c

keyctl_pkey_params_get prologue code to set params up

memset(params, 0, sizeof(*params));
params->encoding = "raw";

keyctl_pkey_query has the same prologue
and calls keyctl_pkey_params_get.

So remove the prologue.

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Ben Boeckel <mathstuf@gmail.com>

authored by

Tom Rix and committed by
David Howells
c224926e 328c95db

-2
-2
security/keys/keyctl_pkey.c
··· 166 166 struct kernel_pkey_query res; 167 167 long ret; 168 168 169 - memset(&params, 0, sizeof(params)); 170 - 171 169 ret = keyctl_pkey_params_get(id, _info, &params); 172 170 if (ret < 0) 173 171 goto error;