mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
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:
parent
6fb73ee052
commit
bcfd170343
1 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue