s5p_mfc_enc_internal: replace min/max value to fix shift-overflow warning
authorMichael Benedict <michaelbt@live.com>
Mon, 22 Apr 2019 05:13:48 +0000 (15:13 +1000)
committerivanmeler <i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:13:36 +0000 (21:13 +0000)
Signed-off-by: Michael Benedict <michaelbt@live.com>
drivers/media/platform/exynos/mfc/s5p_mfc_enc_internal.h

index e3fd3fadd0319da59727627b821aff737901d1a0..9b960eb357b89adebe1ee8884c336823f4c30fff 100644 (file)
@@ -1611,8 +1611,8 @@ static struct v4l2_queryctrl controls[] = {
                .id = V4L2_CID_MPEG_MFC_GET_EXTRA_BUFFER_SIZE,
                .type = V4L2_CTRL_TYPE_INTEGER,
                .name = "Get extra buffer size",
-               .minimum = 0,
-               .maximum = (2 << 31) - 1,
+               .minimum = INT_MIN,
+               .maximum = INT_MAX,
                .step = 1,
                .default_value = 0,
        },