From: kbuild test robot <lkp@intel.com>
To: Olimpiu Dejeu <olimpiu@arcticsand.com>
Cc: kbuild-all@01.org, robh@kernel.org, lee.jones@linaro.org,
linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org,
devicetree@vger.kernel.org, jingoohan1@gmail.com,
bdodge@arcticsand.com, joe@perches.com, medasaro@arcticsand.com,
daniel.thompson@linaro.org,
Olimpiu Dejeu <olimpiu@arcticsand.com>
Subject: [PATCH] fix ptr_ret.cocci warnings
Date: Fri, 17 Mar 2017 22:48:09 +0800 [thread overview]
Message-ID: <20170317144809.GA103304@lkp-hsx03.lkp.intel.com> (raw)
In-Reply-To: <1489607133-7870-3-git-send-email-olimpiu@arcticsand.com>
drivers/video/backlight/arcxcnn_bl.c:183: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
CC: Olimpiu Dejeu <olimpiu@arcticsand.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
arcxcnn_bl.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
--- a/drivers/video/backlight/arcxcnn_bl.c
+++ b/drivers/video/backlight/arcxcnn_bl.c
@@ -180,10 +180,7 @@ static int arcxcnn_backlight_register(st
lp->bl = devm_backlight_device_register(lp->dev, name, lp->dev, lp,
&arcxcnn_bl_ops, props);
- if (IS_ERR(lp->bl))
- return PTR_ERR(lp->bl);
-
- return 0;
+ return PTR_ERR_OR_ZERO(lp->bl);
}
static void arcxcnn_parse_dt(struct arcxcnn *lp)
next prev parent reply other threads:[~2017-03-17 14:59 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-15 19:45 [PATCH v8 1/3] backlight arcxcnn add arc to vendor prefix Olimpiu Dejeu
2017-03-15 19:45 ` [PATCH v8 2/3] backlight arcxcnn devicetree bindings for ArcticSand Olimpiu Dejeu
2017-04-25 8:17 ` Lee Jones
2017-03-15 19:45 ` [PATCH v8 3/3] backlight arcxcnn add support for ArcticSand devices Olimpiu Dejeu
2017-03-17 14:48 ` kbuild test robot [this message]
2017-03-21 14:58 ` [PATCH] fix ptr_ret.cocci warnings Olimpiu Dejeu
2017-03-21 15:07 ` Daniel Thompson
[not found] ` <CAF-XLWL_w3OqafbLzcM=kOkS1nPb0VSCAyDaudQh2UwE4Gw0gg@mail.gmail.com>
2017-04-24 10:57 ` Lee Jones
2017-04-24 11:26 ` Daniel Thompson
2017-03-17 14:48 ` [PATCH v8 3/3] backlight arcxcnn add support for ArcticSand devices kbuild test robot
2017-04-24 15:09 ` [PATCH v8 1/3] backlight arcxcnn add arc to vendor prefix Rob Herring
2017-04-24 17:56 ` Olimpiu Dejeu
2017-04-25 16:36 ` Jingoo Han
2017-04-27 12:36 ` Geert Uytterhoeven
2017-04-27 17:41 ` Jingoo Han
2017-04-28 15:04 ` Olimpiu Dejeu
2017-05-15 10:52 [PATCH] fix ptr_ret.cocci warnings Julia Lawall
2017-05-15 10:56 ` Stephan Müller
2019-12-21 1:18 drivers/pci/controller/pcie-rockchip-host.c:628:1-3: WARNING: PTR_ERR_OR_ZERO can be used kbuild test robot
2019-12-21 1:18 ` [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=20170317144809.GA103304@lkp-hsx03.lkp.intel.com \
--to=lkp@intel.com \
--cc=bdodge@arcticsand.com \
--cc=daniel.thompson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=jingoohan1@gmail.com \
--cc=joe@perches.com \
--cc=kbuild-all@01.org \
--cc=lee.jones@linaro.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=medasaro@arcticsand.com \
--cc=olimpiu@arcticsand.com \
--cc=robh@kernel.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
all inboxes | Powered by JetHome®