* [PATCH] digsig: replace ERR_PTR(PTR_ERR(...)) with ERR_CAST
@ 2013-10-19 13:31 Geyslan G. Bem
0 siblings, 0 replies; only message in thread
From: Geyslan G. Bem @ 2013-10-19 13:31 UTC (permalink / raw)
To: kernel-br
Cc: Geyslan G. Bem, James Morris, Dmitry Kasatkin, YOSHIFUJI Hideaki,
open list
Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)).
'err_cast.cocci' catch.
Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
---
lib/digsig.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/digsig.c b/lib/digsig.c
index 2f31e6a..8793aed 100644
--- a/lib/digsig.c
+++ b/lib/digsig.c
@@ -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 {
--
1.8.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-10-19 13:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-19 13:31 [PATCH] digsig: replace ERR_PTR(PTR_ERR(...)) with ERR_CAST Geyslan G. Bem
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome