Skip to content

Commit

Permalink
Merge "msm: camera: isp: remove the check for bpp" into dev/msm-4.14-…
Browse files Browse the repository at this point in the history
…camx
  • Loading branch information
Suresh Vankadara authored and Gerrit - the friendly Code Review server committed Jun 28, 2019
2 parents d4d89af + 5388dc5 commit 4767d5b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/media/platform/msm/camera/cam_utils/cam_packet_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4767d5b

Please sign in to comment.