diff options
author | Jani Nikula <jani.nikula@intel.com> | 2015-04-28 11:39:22 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2015-05-05 13:10:12 +0300 |
commit | db84a8cf143f5d343220eb1d85a20b8b3da4036c (patch) | |
tree | 2140508ba77415f8ecd6215da0c070ec85fa2019 | |
parent | 0bbbc6360fb1b7adf325ada1bdf7e200ceb8c5c4 (diff) |
tests/gen7_forcewake_mt: use local mmio variable
igfx_get_mmio() uses the global mmio variable by accident. Use a local
variable instead.
The intention is to rename the global variable later on, so shadowing it
here does not matter.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
-rw-r--r-- | tests/gen7_forcewake_mt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gen7_forcewake_mt.c b/tests/gen7_forcewake_mt.c index 8337847c..78730787 100644 --- a/tests/gen7_forcewake_mt.c +++ b/tests/gen7_forcewake_mt.c @@ -88,6 +88,7 @@ static struct pci_device *__igfx_get(void) static void *igfx_get_mmio(void) { struct pci_device *pci = __igfx_get(); + void *mmio = NULL; int error; igt_skip_on(pci == NULL); |