Fix coding style issue caught by checkpatch.pl related to the following
warning:
- "WARNING: char * array declaration might be better as static const"
Signed-off-by: Emmanuil Chatzipetru <[email protected]>
---
drivers/staging/greybus/svc_watchdog.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/greybus/svc_watchdog.c
b/drivers/staging/greybus/svc_watchdog.c
index d8af2d5d0025..60489e21daf3 100644
--- a/drivers/staging/greybus/svc_watchdog.c
+++ b/drivers/staging/greybus/svc_watchdog.c
@@ -45,12 +45,12 @@ static int svc_watchdog_pm_notifier(struct notifier_block
*notifier,
static void greybus_reset(struct work_struct *work)
{
static char start_path[256] = "/system/bin/start";
- static char *envp[] = {
+ static char * const envp[] = {
"HOME=/",
"PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin",
NULL,
};
- static char *argv[] = {
+ static char * const argv[] = {
start_path,
"unipro_reset",
NULL,
--
2.1.4
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel