enum dc_color_depth color_depth = pipe_ctx->
                stream->timing.display_color_depth;
        struct bit_depth_reduction_params params;
+       struct output_pixel_processor *opp = pipe_ctx->stream_res.opp;
 
        memset(¶ms, 0, sizeof(params));
 
        {
                /* disable bit depth reduction */
                pipe_ctx->stream->bit_depth_params = params;
-               pipe_ctx->stream_res.opp->funcs->
-                       opp_program_bit_depth_reduction(pipe_ctx->stream_res.opp, ¶ms);
+               opp->funcs->opp_program_bit_depth_reduction(opp, ¶ms);
                if (pipe_ctx->stream_res.tg->funcs->set_test_pattern)
                        pipe_ctx->stream_res.tg->funcs->set_test_pattern(pipe_ctx->stream_res.tg,
                                controller_test_pattern, color_depth);
        case DP_TEST_PATTERN_VIDEO_MODE:
        {
                /* restore bitdepth reduction */
-               resource_build_bit_depth_reduction_params(pipe_ctx->stream,
-                                       ¶ms);
+               resource_build_bit_depth_reduction_params(pipe_ctx->stream, ¶ms);
                pipe_ctx->stream->bit_depth_params = params;
-               pipe_ctx->stream_res.opp->funcs->
-                       opp_program_bit_depth_reduction(pipe_ctx->stream_res.opp, ¶ms);
+               opp->funcs->opp_program_bit_depth_reduction(opp, ¶ms);
                if (pipe_ctx->stream_res.tg->funcs->set_test_pattern)
                        pipe_ctx->stream_res.tg->funcs->set_test_pattern(pipe_ctx->stream_res.tg,
                                CONTROLLER_DP_TEST_PATTERN_VIDEOMODE,