]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: stm32: dcmipp: correct ret type in dcmipp_graph_notify_bound
authorAlain Volmat <alain.volmat@foss.st.com>
Mon, 13 Jan 2025 08:57:51 +0000 (09:57 +0100)
committerHans Verkuil <hverkuil@xs4all.nl>
Sat, 15 Feb 2025 14:22:47 +0000 (15:22 +0100)
The ret variable used within the function dcmipp_graph_notify_bound is
wrongly defined as unsigned int while it can also be signed.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c

index 71acf539e1f3133dd92e6d1ff10086da7f774d07..5a04018a6a9dc27d8bbdf2dda0bf0d1993c31710 100644 (file)
@@ -296,7 +296,7 @@ static int dcmipp_graph_notify_bound(struct v4l2_async_notifier *notifier,
                                     struct v4l2_async_connection *asd)
 {
        struct dcmipp_device *dcmipp = notifier_to_dcmipp(notifier);
-       unsigned int ret;
+       int ret;
        int src_pad, i;
        struct dcmipp_ent_device *sink;
        struct v4l2_fwnode_endpoint vep = { 0 };