Skip to content

Commit d4c41d3

Browse files
Lotte-Bainmenon
authored andcommitted
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
1 parent 2b70425 commit d4c41d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/soc/ti/knav_qmss_queue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ void *knav_pool_create(const char *name,
789789
}
790790

791791
pool->queue = knav_queue_open(name, KNAV_QUEUE_GP, 0);
792-
if (IS_ERR_OR_NULL(pool->queue)) {
792+
if (IS_ERR(pool->queue)) {
793793
dev_err(kdev->dev,
794794
"failed to open queue for pool(%s), error %ld\n",
795795
name, PTR_ERR(pool->queue));

0 commit comments

Comments
 (0)