Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32ad5963 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "post_proc: remove unnecessary command size check"

parents 30594e64 bfed9959
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -847,8 +847,6 @@ int effect_command(effect_handle_t self, uint32_t cmdCode, uint32_t cmdSize,
        } break;
    case EFFECT_CMD_SET_PARAM: {
        if (pCmdData == NULL ||
            cmdSize > (int)(sizeof(effect_param_t) + sizeof(uint32_t) +
                            sizeof(uint32_t)) ||
            cmdSize < (int)(sizeof(effect_param_t) + sizeof(uint32_t) +
                            sizeof(uint16_t)) ||
            pReplyData == NULL || *replySize != sizeof(int32_t)) {