Re: [PATCH] drm/amd/display: clean up a condition in dmub_psr_copy_settings()

2020-03-12 Thread Alex Deucher
On Thu, Mar 12, 2020 at 7:32 AM Dan Carpenter wrote: > > We can remove the NULL check for "res_ctx" and > "res_ctx->pipe_ctx[i].stream->link". Also it's nicer to align the > conditions using spaces so I re-indented a bit. > > Longer explanation: The "res_ctx" pointer points to an address in the >

[PATCH] drm/amd/display: clean up a condition in dmub_psr_copy_settings()

2020-03-12 Thread Dan Carpenter
We can remove the NULL check for "res_ctx" and "res_ctx->pipe_ctx[i].stream->link". Also it's nicer to align the conditions using spaces so I re-indented a bit. Longer explanation: The "res_ctx" pointer points to an address in the middle of a struct so it can't be NULL. For "res_ctx->pipe_ctx[i]