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)
committerMichael Benedict <michaelbt@live.com>
Sat, 31 Aug 2019 15:08:53 +0000 (01:08 +1000)
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,
        },