diff --git a/drivers/media/platform/msm/camera/cam_utils/cam_packet_util.c b/drivers/media/platform/msm/camera/cam_utils/cam_packet_util.c index ecb4fe4c401ad..4eae9ae5f276f 100644 --- a/drivers/media/platform/msm/camera/cam_utils/cam_packet_util.c +++ b/drivers/media/platform/msm/camera/cam_utils/cam_packet_util.c @@ -361,7 +361,6 @@ int32_t cam_packet_validate_plane_size( { int rc = 0; uint32_t kmd_plane_size = 0; - uint32_t bpp = io_cfg->bpp; uint32_t plane_stride = 0; uint32_t slice_height = 0; uint32_t metadata_size = 0; @@ -406,12 +405,7 @@ int32_t cam_packet_validate_plane_size( case CAM_FORMAT_PLAIN16_12: case CAM_FORMAT_PLAIN16_14: case CAM_FORMAT_PLAIN16_16: - if (bpp == 8 || bpp == 10 || bpp == 12 - || bpp == 14 || bpp == 16) - kmd_plane_size = plane_stride * slice_height; - break; case CAM_FORMAT_PLAIN64: - if (bpp == 64) kmd_plane_size = plane_stride * slice_height; break; case CAM_FORMAT_NV21: