Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Snippets Groups Projects
Commit d0192dca authored by Dan Carpenter's avatar Dan Carpenter Committed by Darren Hart
Browse files

intel_telemetry_pltdrv: Silence an uninitialized variable warning


Presumably "pss_period" and "ioss_period" can't both be zero, but this
function is never called so we can't infer that using static analysis
alone.

Silence the warning by setting "ret" to zero.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
parent ff22b480
Branches
No related tags found
No related merge requests found
...@@ -659,7 +659,7 @@ static int telemetry_plt_update_events(struct telemetry_evtconfig pss_evtconfig, ...@@ -659,7 +659,7 @@ static int telemetry_plt_update_events(struct telemetry_evtconfig pss_evtconfig,
static int telemetry_plt_set_sampling_period(u8 pss_period, u8 ioss_period) static int telemetry_plt_set_sampling_period(u8 pss_period, u8 ioss_period)
{ {
u32 telem_ctrl = 0; u32 telem_ctrl = 0;
int ret; int ret = 0;
mutex_lock(&(telm_conf->telem_lock)); mutex_lock(&(telm_conf->telem_lock));
if (ioss_period) { if (ioss_period) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment