Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Unverified Commit 922485b9 authored by Nick Desaulniers's avatar Nick Desaulniers Committed by Michael Bestas
Browse files

msm: camera: icp: fix -Wunsequenced



Fixes:
drivers/media/platform/msm/camera/cam_icp/icp_hw/icp_hw_mgr/cam_icp_hw_mgr.c:3481:17:
error: multiple unsequenced modifications to 'num_cmd_buf'
[-Werror,-Wunsequenced]
num_cmd_buf-- : 0;
           ^
drivers/media/platform/msm/camera/cam_icp/icp_hw/icp_hw_mgr/cam_icp_hw_mgr.c:3505:17:
error: multiple unsequenced modifications to 'num_cmd_buf'
[-Werror,-Wunsequenced]
num_cmd_buf-- : 0;
           ^

This code is decrementing num_cmd_buf, but clamping it at 0.

See:
commit 05349feaa2032 ("Camera: Bring over camera driver changes")
to techpack/camera/drivers/cam_icp/icp_hw/icp_hw_mgr/cam_icp_hw_mgr.c
in newer device's kernels.

Bug: 155426751
Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Change-Id: Ib55cd21f9298c125294d55837dc96bff9d7bc9e7
(cherry picked from commit 0d84d28ff30809c2e925eca06ecfda110e67c45b)
parent 0cba5943
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment