From 14dd77578a7a289395d30a21e05c5b6b7975f7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ordo=C3=B1ez=20M=C3=BCller=2C=20Antonio?= Date: Tue, 24 Mar 2026 10:56:45 +0100 Subject: [PATCH] simplify code The function spa_libcamera_stream_off() always returns 0. --- spa/plugins/libcamera/libcamera-source.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spa/plugins/libcamera/libcamera-source.cpp b/spa/plugins/libcamera/libcamera-source.cpp index fba3d8b0b..3d65270ae 100644 --- a/spa/plugins/libcamera/libcamera-source.cpp +++ b/spa/plugins/libcamera/libcamera-source.cpp @@ -1592,8 +1592,7 @@ int impl_node_send_command(void *object, const struct spa_command *command) } case SPA_NODE_COMMAND_Pause: case SPA_NODE_COMMAND_Suspend: - if ((res = spa_libcamera_stream_off(impl)) < 0) - return res; + spa_libcamera_stream_off(impl); break; default: return -ENOTSUP;