aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/cec/cec-pin.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2017-10-18 04:11:46 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-10-31 07:21:23 -0400
commit60757ee62be7ef4f2452265ab20cdf1f0b5d7934 (patch)
tree3a2686d9384a3304972ab792a6b9e1f95a90bf4e /drivers/media/cec/cec-pin.c
parentmedia: v4l2-ctrl: Fix flags field on Control events (diff)
downloadlinux-dev-60757ee62be7ef4f2452265ab20cdf1f0b5d7934.tar.xz
linux-dev-60757ee62be7ef4f2452265ab20cdf1f0b5d7934.zip
media: cec-pin: use IS_ERR instead of PTR_ERR_OR_ZERO
cec_allocate_adapter never returns NULL, so just use IS_ERR instead of PTR_ERR_OR_ZERO. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/cec/cec-pin.c')
-rw-r--r--drivers/media/cec/cec-pin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/cec/cec-pin.c b/drivers/media/cec/cec-pin.c
index a4c881dc81c4..b48dfe844118 100644
--- a/drivers/media/cec/cec-pin.c
+++ b/drivers/media/cec/cec-pin.c
@@ -797,7 +797,7 @@ struct cec_adapter *cec_pin_allocate_adapter(const struct cec_pin_ops *pin_ops,
caps | CEC_CAP_MONITOR_ALL | CEC_CAP_MONITOR_PIN,
CEC_MAX_LOG_ADDRS);
- if (PTR_ERR_OR_ZERO(adap)) {
+ if (IS_ERR(adap)) {
kfree(pin);
return adap;
}