mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Geyslan G. Bem" <geyslan@gmail.com>
To: kernel-br@googlegroups.com
Cc: "Geyslan G. Bem" <geyslan@gmail.com>,
	James Morris <james.l.morris@oracle.com>,
	Dmitry Kasatkin <dmitry.kasatkin@intel.com>,
	YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>,
	linux-kernel@vger.kernel.org (open list)
Subject: [PATCH] digsig: replace ERR_PTR(PTR_ERR(...)) with ERR_CAST
Date: Sat, 19 Oct 2013 10:31:07 -0300	[thread overview]
Message-ID: <1382189468-27189-1-git-send-email-geyslan@gmail.com> (raw)

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


                 reply	other threads:[~2013-10-19 13:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1382189468-27189-1-git-send-email-geyslan@gmail.com \
    --to=geyslan@gmail.com \
    --cc=dmitry.kasatkin@intel.com \
    --cc=james.l.morris@oracle.com \
    --cc=kernel-br@googlegroups.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=yoshfuji@linux-ipv6.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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