From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [PATCH] ANDROID: fix err_cast.cocci warnings
Date: Tue, 14 Apr 2020 08:10:07 +0800 [thread overview]
Message-ID: <20200414001007.GA120186@4cbabbdd0d46> (raw)
In-Reply-To: <202004140801.PpIze8Uo%lkp@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]
From: kbuild test robot <lkp@intel.com>
fs/incfs/integrity.c:138:9-16: WARNING: ERR_CAST can be used with hash_alg
Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
Generated by: scripts/coccinelle/api/err_cast.cocci
Fixes: 040942fc50b2 ("ANDROID: Initial commit of Incremental FS")
CC: Eugene Zemtsov <ezemtsov@google.com>
Signed-off-by: kbuild test robot <lkp@intel.com>
---
tree: https://android.googlesource.com/kernel/common android-4.19
head: 7bab03039e64ed6c26be90530e08978eab3be578
commit: 040942fc50b20325bb56737c32b303268bb6f35c [1/4] ANDROID: Initial commit of Incremental FS
integrity.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/fs/incfs/integrity.c
+++ b/fs/incfs/integrity.c
@@ -135,7 +135,7 @@ struct mtree *incfs_alloc_mtree(enum inc
hash_alg = incfs_get_hash_alg(id);
if (IS_ERR(hash_alg))
- return ERR_PTR(PTR_ERR(hash_alg));
+ return ERR_CAST(hash_alg);
if (root_hash.len < hash_alg->digest_size)
return ERR_PTR(-EINVAL);
next prev parent reply other threads:[~2020-04-14 0:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-14 0:10 [android-common:android-4.19 1/4] fs/incfs/integrity.c:138:9-16: WARNING: ERR_CAST can be used with hash_alg kbuild test robot
2020-04-14 0:10 ` kbuild test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-03-18 21:13 [android-goldfish:android-4.14 1/3] " kbuild test robot
2020-03-18 21:13 ` [PATCH] ANDROID: fix err_cast.cocci warnings kbuild test robot
2020-01-31 7:19 [android-common:android-5.4 1/6] fs/incfs/integrity.c:138:9-16: WARNING: ERR_CAST can be used with hash_alg kbuild test robot
2020-01-31 7:19 ` [PATCH] ANDROID: fix err_cast.cocci warnings kbuild test robot
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=20200414001007.GA120186@4cbabbdd0d46 \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.