DRM_DEBUG_KMS("prop_id[%d]buf_id[%d]buf_type[%d]\n",
property->prop_id, buf_id, buf_type);
- if (buf_id > FIMC_MAX_SRC) {
- dev_info(ippdrv->dev, "inavlid buf_id %d.\n", buf_id);
- return -ENOMEM;
- }
+ buf_id %= FIMC_MAX_SRC;
/* address register set */
switch (buf_type) {
DRM_DEBUG_KMS("prop_id[%d]buf_id[%d]buf_type[%d]\n",
property->prop_id, buf_id, buf_type);
- if (buf_id > FIMC_MAX_DST) {
- dev_info(ippdrv->dev, "inavlid buf_id %d.\n", buf_id);
- return -ENOMEM;
- }
+ buf_id %= FIMC_MAX_DST;
/* address register set */
switch (buf_type) {