Mark plat_vidapi() argument as const and remove the NULL

* plat_vidapi() accepts char pointer, which never gets modifed
later on. Mark it as const.

* In src/config.c, va_name is initialized as NULL, however,
plat_vidapi_name() never returns a NULL pointer, nor it was
initialized under a condition branch. Removing NULL, might
save one instruction, which requires zeroing the register
before setting its initial value.
This commit is contained in:
rilysh
2024-07-21 12:49:06 +05:30
parent 92e8fe09a4
commit 189be035d2
4 changed files with 4 additions and 4 deletions

View File

@@ -1720,7 +1720,7 @@ save_general(void)
char temp[512];
char buffer[512] = { 0 };
const char *va_name = NULL;
const char *va_name;
ini_section_set_int(cat, "vid_resize", vid_resize);
if (vid_resize == 0)