fixup! (CR): create mmi_info module

Due to llvm is updated to 10.0.3, this would report
build error l(CR):
+++
/mnt/rider/a7301c/R_8250/kernel/msm-4.19/../../motorola/kernel/modules/drivers/mmi_info/mmi_info_main.c:43:3:
warning: misleading indentation; statement is not part of the
previous 'if' [-Wmisleading-indentation]
 error, forbidden warning: mmi_info_main.c:43
+++
Signed-off-by: a7301c <a7301c@motorola.com>

Change-Id: Icce684f637adeb374a2298d3f8add967d5bbddca
Reviewed-on: https://gerrit.mot.com/1533707
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Yinjun Chen <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1540155
This commit is contained in:
a7301c 2020-04-13 11:19:33 -05:00 • committed by Yinjun Chen
commit bcfd170343

View file

@ -35,14 +35,14 @@ int mmi_get_bootarg(char *key, char **value)
if (of_property_read_string(n, "bootargs", &bootargs_tmp) != 0)
goto putnode;
if (!bootargs_str)
if (!bootargs_str) {
/* The following operations need a non-const
* version of bootargs
*/
bootargs_str = kzalloc(strlen(bootargs_tmp) + 1, GFP_KERNEL);
if (!bootargs_str)
goto putnode;
}
strlcpy(bootargs_str, bootargs_tmp, strlen(bootargs_tmp) + 1);
idx = strnstr(bootargs_str, key, strlen(bootargs_str));