diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2017-10-18 10:11:46 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-10-31 12:21:23 +0100 |
commit | 60757ee62be7ef4f2452265ab20cdf1f0b5d7934 (patch) | |
tree | 3a2686d9384a3304972ab792a6b9e1f95a90bf4e /drivers/media/cec | |
parent | media: v4l2-ctrl: Fix flags field on Control events (diff) | |
download | linux-60757ee62be7ef4f2452265ab20cdf1f0b5d7934.tar.xz linux-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')
-rw-r--r-- | drivers/media/cec/cec-pin.c | 2 |
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; } |