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

Commit ff6092a8 authored by Duan Jiong's avatar Duan Jiong Committed by Linus Torvalds
Browse files

lib/digsig.c: use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))



Signed-off-by: default avatarDuan Jiong <duanj.fnst@cn.fujitsu.com>
Cc: James Morris <james.l.morris@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c0d92a57
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -209,7 +209,7 @@ int digsig_verify(struct key *keyring, const char *sig, int siglen,
		kref = keyring_search(make_key_ref(keyring, 1UL),
		kref = keyring_search(make_key_ref(keyring, 1UL),
						&key_type_user, name);
						&key_type_user, name);
		if (IS_ERR(kref))
		if (IS_ERR(kref))
			key = ERR_PTR(PTR_ERR(kref));
			key = ERR_CAST(kref);
		else
		else
			key = key_ref_to_ptr(kref);
			key = key_ref_to_ptr(kref);
	} else {
	} else {