From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [PATCH] fix ptr_ret.cocci warnings
Date: Thu, 27 Aug 2020 09:41:08 +0800 [thread overview]
Message-ID: <20200827014108.GA4548@d10202f75172> (raw)
In-Reply-To: <202008270904.6ZCiqBMY%lkp@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1106 bytes --]
From: kernel test robot <lkp@intel.com>
crypto/benchmark.c:616:1-3: WARNING: PTR_ERR_OR_ZERO can be used
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
Generated by: scripts/coccinelle/api/ptr_ret.cocci
Fixes: 14f42ca5c1a2 ("[TESTING, DO NOT MERGE] crypto - add benchmark and testing module")
Signed-off-by: kernel test robot <lkp@intel.com>
---
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git cryptobench
head: 14f42ca5c1a289b166e7e162b45577adffc7a28f
commit: 14f42ca5c1a289b166e7e162b45577adffc7a28f [1/1] [TESTING, DO NOT MERGE] crypto - add benchmark and testing module
benchmark.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
--- a/crypto/benchmark.c
+++ b/crypto/benchmark.c
@@ -613,9 +613,7 @@ static int __init cryptobench_init(void)
{
proc_cryptobench = proc_create("cryptobench", 0600, NULL,
&cryptobench_fops);
- if (IS_ERR(proc_cryptobench))
- return PTR_ERR(proc_cryptobench);
- return 0;
+ return PTR_ERR_OR_ZERO(proc_cryptobench);
}
static void __exit cryptobench_exit(void)
next prev parent reply other threads:[~2020-08-27 1:41 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-27 1:41 [ebiggers:cryptobench 1/1] crypto/benchmark.c:616:1-3: WARNING: PTR_ERR_OR_ZERO can be used kernel test robot
2020-08-27 1:41 ` kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-12-21 1:18 drivers/pci/controller/pcie-rockchip-host.c:628:1-3: " kbuild test robot
2019-12-21 1:18 ` [PATCH] fix ptr_ret.cocci warnings kbuild test robot
2019-12-21 1:18 ` kbuild test robot
2019-12-21 1:18 ` kbuild test robot
2019-10-09 11:32 [wsa:renesas/i2c/new_dummy 5/5] drivers/i2c/busses/i2c-nvidia-gpu.c:284:1-3: WARNING: PTR_ERR_OR_ZERO can be used kbuild test robot
2019-10-09 11:32 ` [PATCH] fix ptr_ret.cocci warnings kbuild test robot
2018-10-24 19:58 [PATCH v2 10/13] NFS inter ssc open Olga Kornievskaia
2018-10-25 1:31 ` [PATCH] fix ptr_ret.cocci warnings kbuild test robot
2017-05-15 10:52 Julia Lawall
2017-05-15 10:56 ` Stephan Müller
2017-03-17 14:48 [PATCH v8 3/3] backlight arcxcnn add support for ArcticSand devices kbuild test robot
2017-03-15 19:45 ` Olimpiu Dejeu
[not found] ` <1489607133-7870-3-git-send-email-olimpiu-eV7fy4qpoLhpLGFMi4vTTA@public.gmane.org>
2017-03-17 14:48 ` [PATCH] fix ptr_ret.cocci warnings kbuild test robot
2017-03-17 14:48 ` kbuild test robot
2017-03-17 14:48 ` kbuild test robot
[not found] ` <20170317144809.GA103304-zqhkPGYYkloFTpe94t1N+dh3ngVCH38I@public.gmane.org>
2017-03-21 14:58 ` Olimpiu Dejeu
2017-03-21 14:58 ` Olimpiu Dejeu
2017-03-21 14:58 ` Olimpiu Dejeu
[not found] ` <CAF-XLWL6KODEkqjN58abz2ieywgZ0BO5enHQJ2jSD5WpX+NSaQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-03-21 15:07 ` Daniel Thompson
2017-03-21 15:07 ` Daniel Thompson
2017-03-21 15:07 ` Daniel Thompson
2017-04-17 12:57 ` Olimpiu Dejeu
[not found] ` <CAF-XLWL_w3OqafbLzcM=kOkS1nPb0VSCAyDaudQh2UwE4Gw0gg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-04-24 10:57 ` Lee Jones
2017-04-24 10:57 ` Lee Jones
2017-04-24 10:57 ` Lee Jones
2017-04-24 11:26 ` Daniel Thompson
2017-04-24 11:26 ` Daniel Thompson
2015-06-24 15:00 [nfs:testing 41/50] fs/nfs/nfs42proc.c:191:1-3: WARNING: PTR_ERR_OR_ZERO can be used kbuild test robot
2015-06-24 15:00 ` [PATCH] fix ptr_ret.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=20200827014108.GA4548@d10202f75172 \
--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.