diff options
| author | Simon Ser <simon.ser@intel.com> | 2019-07-11 10:39:51 +0300 |
|---|---|---|
| committer | Simon Ser <simon.ser@intel.com> | 2019-07-12 16:41:53 +0300 |
| commit | 549e1cdc064c0491a9c4509f42d826ae0e752a07 (patch) | |
| tree | e63a2fcfc889698e817a946b1973569e5d595d8a /tests | |
| parent | d7f140b5b02d054183a74842b4579cf7f5533927 (diff) | |
tests/kms_chamelium: remove unused drmModeGetResources
The function was called, but the result was never used. Probably a remnant from
a previous refactoring.
Signed-off-by: Simon Ser <simon.ser@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/kms_chamelium.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c index b749b559..321fb16b 100644 --- a/tests/kms_chamelium.c +++ b/tests/kms_chamelium.c @@ -464,14 +464,11 @@ prepare_output(data_t *data, struct chamelium_port *port, enum test_edid edid) { igt_display_t *display = &data->display; igt_output_t *output; - drmModeRes *res; drmModeConnector *connector = chamelium_port_get_connector(data->chamelium, port, false); enum pipe pipe; bool found = false; - igt_require(res = drmModeGetResources(data->drm_fd)); - /* The chamelium's default EDID has a lot of resolutions, way more then * we need to test. Additionally the default EDID doesn't support HDMI * audio. @@ -501,7 +498,6 @@ prepare_output(data_t *data, struct chamelium_port *port, enum test_edid edid) igt_output_set_pipe(output, pipe); drmModeFreeConnector(connector); - drmModeFreeResources(res); return output; } |
