From: Michael Benedict Date: Mon, 22 Apr 2019 05:13:48 +0000 (+1000) Subject: s5p_mfc_enc_internal: replace min/max value to fix shift-overflow warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6720aec122f5f157449c106c4c9e7929392d24b5;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git s5p_mfc_enc_internal: replace min/max value to fix shift-overflow warning Signed-off-by: Michael Benedict --- diff --git a/drivers/media/platform/exynos/mfc/s5p_mfc_enc_internal.h b/drivers/media/platform/exynos/mfc/s5p_mfc_enc_internal.h index e3fd3fadd031..9b960eb357b8 100644 --- a/drivers/media/platform/exynos/mfc/s5p_mfc_enc_internal.h +++ b/drivers/media/platform/exynos/mfc/s5p_mfc_enc_internal.h @@ -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, },