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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
This commit is contained in:
Dan Carpenter 2016-04-15 17:45:58 +03:00 committed by Darren Hart
parent ff22b4806d
commit d0192dca2d
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{
u32 telem_ctrl = 0;
int ret;
int ret = 0;
mutex_lock(&(telm_conf->telem_lock));
if (ioss_period) {