Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27720e75 authored by Insu Yun's avatar Insu Yun Committed by David Howells
Browse files

keys: Be more consistent in selection of union members used



key->description and key->index_key.description are same because
they are unioned. But, for readability, using same name for
duplication and validation seems better.

Signed-off-by: default avatarInsu Yun <wuninsu@gmail.com>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent 48dbc164
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -278,7 +278,7 @@ struct key *key_alloc(struct key_type *type, const char *desc,

	key->index_key.desc_len = desclen;
	key->index_key.description = kmemdup(desc, desclen + 1, GFP_KERNEL);
	if (!key->description)
	if (!key->index_key.description)
		goto no_memory_3;

	atomic_set(&key->usage, 1);