PM: sleep: spread "const char *" correctness

Fixed string literals can be referred to as "const char *".

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
[ rjw: Minor subject edit ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
Alexey Dobriyan 2020-07-10 22:12:10 +03:00 committed by Rafael J. Wysocki
parent 6ada7ba2fa
commit 02d7f4005e
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ static inline int init_header_complete(struct swsusp_info *info)
return arch_hibernation_header_save(info, MAX_ARCH_HEADER_SIZE); return arch_hibernation_header_save(info, MAX_ARCH_HEADER_SIZE);
} }
static inline char *check_image_kernel(struct swsusp_info *info) static inline const char *check_image_kernel(struct swsusp_info *info)
{ {
return arch_hibernation_header_restore(info) ? return arch_hibernation_header_restore(info) ?
"architecture specific data" : NULL; "architecture specific data" : NULL;

View File

@ -2023,7 +2023,7 @@ static int init_header_complete(struct swsusp_info *info)
return 0; return 0;
} }
static char *check_image_kernel(struct swsusp_info *info) static const char *check_image_kernel(struct swsusp_info *info)
{ {
if (info->version_code != LINUX_VERSION_CODE) if (info->version_code != LINUX_VERSION_CODE)
return "kernel version"; return "kernel version";
@ -2176,7 +2176,7 @@ static void mark_unsafe_pages(struct memory_bitmap *bm)
static int check_header(struct swsusp_info *info) static int check_header(struct swsusp_info *info)
{ {
char *reason; const char *reason;
reason = check_image_kernel(info); reason = check_image_kernel(info);
if (!reason && info->num_physpages != get_num_physpages()) if (!reason && info->num_physpages != get_num_physpages())