qcacmn: Fix "maybe-uninitialized" compilation error

Initialize to fix "maybe-uninitialized" compilation
error for specific compilers.

Change-Id: Ibb049891ef5847d1beda94470a6e75ebba145ef4
CRs-Fixed: 2634848
This commit is contained in:
Nirav Shah
2019-06-11 19:29:12 +05:30
committed by nshrivas
parent 4f48adea18
commit 9ae1975ec5

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -323,8 +323,8 @@ qdf_export_symbol(qdf_uint32_parse);
QDF_STATUS qdf_int64_parse(const char *int_str, int64_t *out_int)
{
QDF_STATUS status;
bool negate;
uint64_t value;
bool negate = false;
uint64_t value = 0;
int64_t signed_value;
status = qdf_int_parse(int_str, &value, &negate);
@@ -350,8 +350,8 @@ qdf_export_symbol(qdf_int64_parse);
QDF_STATUS qdf_uint64_parse(const char *int_str, uint64_t *out_int)
{
QDF_STATUS status;
bool negate;
uint64_t value;
bool negate = false;
uint64_t value = 0;
status = qdf_int_parse(int_str, &value, &negate);
if (QDF_IS_STATUS_ERROR(status))