summaryrefslogtreecommitdiffstats
path: root/drivers/media/cec
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
parent9cac9d2fb2fe0e0cadacdb94415b3fe49e3f724f (diff)
downloadlinux-60757ee62be7ef4f2452265ab20cdf1f0b5d7934.tar.bz2
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')
-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;
}