]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: vchiq_core: Pass enumerated flag instead of int
authorUmang Jain <umang.jain@ideasonboard.com>
Tue, 10 Sep 2024 05:10:07 +0000 (10:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Sep 2024 13:54:04 +0000 (15:54 +0200)
Pass proper enumerated flag which exists, instead of an integer while
calling queue_message(). It helps with readability of the code.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Stefan Wahren <wahrenst@gmx.net>
Tested-by: Stefan Wahren <wahrenst@gmx.net>
Link: https://lore.kernel.org/r/20240910051007.297227-8-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c

index 2c75d8fd06a819f7d8bb0ad03dd2fa9210b8e1be..1f94db6e0cd984847207a2b3668af1326ac77820 100644 (file)
@@ -3245,7 +3245,8 @@ vchiq_queue_message(struct vchiq_instance *instance, unsigned int handle,
        switch (service->srvstate) {
        case VCHIQ_SRVSTATE_OPEN:
                status = queue_message(service->state, service, data_id,
-                                      copy_callback, context, size, 1);
+                                      copy_callback, context, size,
+                                      QMFLAGS_IS_BLOCKING);
                break;
        case VCHIQ_SRVSTATE_OPENSYNC:
                status = queue_message_sync(service->state, service, data_id,