mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-09 20:31:13 -05:00
qcacld-3.0: Initialize out_mode in hdd_parse_driver_mode
gcc-4.8 incorrectly flags the use of @next_mode in __con_mode_handler as potentially uninitialized, while newer versions do not seem to have a problem. Work around the compiler quirk by initializing @out_mode in hdd_parse_driver_mode. Change-Id: Iee101db6eaded8e856e461458d6a80e8279e9ca1 CRs-Fixed: 2338538
This commit is contained in:
parent
f3892b5d68
commit
62743f4c71
1 changed files with 2 additions and 0 deletions
|
|
@ -13242,6 +13242,8 @@ hdd_parse_driver_mode(const char *mode_str, enum QDF_GLOBAL_MODE *out_mode)
|
|||
int mode;
|
||||
int errno;
|
||||
|
||||
*out_mode = QDF_GLOBAL_MAX_MODE;
|
||||
|
||||
errno = kstrtoint(mode_str, 0, &mode);
|
||||
if (!errno)
|
||||
*out_mode = (enum QDF_GLOBAL_MODE)mode;
|
||||
|
|
|
|||
Loading…
Reference in a new issue