mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 16:36:14 +00:00
kms_rotation_crc: No need to test for NULL before freeing the pipe CRC object
igt_pipe_crc_free() does that check already. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
05f90b0308
commit
2eaa50f02e
@ -88,9 +88,7 @@ static bool prepare_crtc(data_t *data, igt_output_t *output, enum pipe pipe,
|
|||||||
igt_display_commit(display);
|
igt_display_commit(display);
|
||||||
|
|
||||||
/* create the pipe_crc object for this pipe */
|
/* create the pipe_crc object for this pipe */
|
||||||
if (data->pipe_crc)
|
|
||||||
igt_pipe_crc_free(data->pipe_crc);
|
igt_pipe_crc_free(data->pipe_crc);
|
||||||
|
|
||||||
data->pipe_crc = igt_pipe_crc_new(pipe, INTEL_PIPE_CRC_SOURCE_AUTO);
|
data->pipe_crc = igt_pipe_crc_new(pipe, INTEL_PIPE_CRC_SOURCE_AUTO);
|
||||||
if (!data->pipe_crc) {
|
if (!data->pipe_crc) {
|
||||||
igt_info("auto crc not supported on this connector with pipe %i\n",
|
igt_info("auto crc not supported on this connector with pipe %i\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user