Skip to content

Commit

Permalink
lib/digsig.c: use ERR_CAST inlined function instead of ERR_PTR(PTR_ER…
Browse files Browse the repository at this point in the history
…R(...))

Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Cc: James Morris <james.l.morris@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Duan Jiong authored and torvalds committed Nov 13, 2013
1 parent c0d92a5 commit ff6092a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/digsig.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ int digsig_verify(struct key *keyring, const char *sig, int siglen,
kref = keyring_search(make_key_ref(keyring, 1UL),
&key_type_user, name);
if (IS_ERR(kref))
key = ERR_PTR(PTR_ERR(kref));
key = ERR_CAST(kref);
else
key = key_ref_to_ptr(kref);
} else {
Expand Down

0 comments on commit ff6092a

Please sign in to comment.