summaryrefslogtreecommitdiffstats
path: root/drivers/soc
diff options
context:
space:
mode:
authorHaowen Bai <baihaowen@meizu.com>2022-04-24 04:05:43 +0200
committerNishanth Menon <nm@ti.com>2022-05-03 15:02:05 +0200
commitd4c41d32cf8af10e4c0a35a6d4995de253b54df6 (patch)
tree4deb3f0c56b70c05137593a4d499855eaec44392 /drivers/soc
parentsoc: ti: pm33xx: using pm_runtime_resume_and_get instead of pm_runtime_get_sync (diff)
downloadlinux-d4c41d32cf8af10e4c0a35a6d4995de253b54df6.tar.xz
linux-d4c41d32cf8af10e4c0a35a6d4995de253b54df6.zip
soc: ti: knav_qmss_queue: Use IS_ERR instead of IS_ERR_OR_NULL when checking knav_queue_open() result
As the usage of knav_queue_open(): * Returns a handle to the open hardware queue if successful. Use IS_ERR() * to check the returned value for error codes. It will only return error codes, not null. Signed-off-by: Haowen Bai <baihaowen@meizu.com> Signed-off-by: Nishanth Menon <nm@ti.com> Link: https://lore.kernel.org/r/1650765944-20170-1-git-send-email-baihaowen@meizu.com
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/ti/knav_qmss_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c
index 30612719e2f1..92af7d1b6f5b 100644
--- a/drivers/soc/ti/knav_qmss_queue.c
+++ b/drivers/soc/ti/knav_qmss_queue.c
@@ -789,7 +789,7 @@ void *knav_pool_create(const char *name,
}
pool->queue = knav_queue_open(name, KNAV_QUEUE_GP, 0);
- if (IS_ERR_OR_NULL(pool->queue)) {
+ if (IS_ERR(pool->queue)) {
dev_err(kdev->dev,
"failed to open queue for pool(%s), error %ld\n",
name, PTR_ERR(pool->queue));