summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanusz Krzysztofik <janusz.krzysztofik@linux.intel.com>2020-07-09 18:41:28 +0200
committerJanusz Krzysztofik <janusz.krzysztofik@linux.intel.com>2020-09-14 20:44:26 +0200
commit52c80ba2a35f7e03d1af90c728dc9c0517013373 (patch)
tree282556ac35af8bef56616631a002d53d4cf844ba
parent7187913c7366c5099612c0d09259ef3182740a34 (diff)
tests/core_hotunplug: Constify dev_bus_addr string
Device bus address structure field is always initialized with a pointer to a substring of the device sysfs path and never used for its modification. Declare it as a constant string. Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com> Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
-rw-r--r--tests/core_hotunplug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core_hotunplug.c b/tests/core_hotunplug.c
index 7431346b..a4071f51 100644
--- a/tests/core_hotunplug.c
+++ b/tests/core_hotunplug.c
@@ -44,7 +44,7 @@ struct hotunplug {
int sysfs_bus;
int sysfs_drv;
} fd;
- char *dev_bus_addr;
+ const char *dev_bus_addr;
};
/* Helpers */