projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff22b48
)
intel_telemetry_pltdrv: Silence an uninitialized variable warning
author
Dan Carpenter
<
[email protected]
>
Fri, 15 Apr 2016 14:45:58 +0000
(17:45 +0300)
committer
Darren Hart
<
[email protected]
>
Fri, 15 Apr 2016 15:26:41 +0000
(08:26 -0700)
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 <
[email protected]
>
Signed-off-by: Darren Hart <
[email protected]
>
drivers/platform/x86/intel_telemetry_pltdrv.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/intel_telemetry_pltdrv.c
b/drivers/platform/x86/intel_telemetry_pltdrv.c
index 397119f83e82384913a305065a70f1ca7ae815d8..781bd10ca7ac5ba147e4e718d1d54577a7626e33 100644
(file)
--- a/
drivers/platform/x86/intel_telemetry_pltdrv.c
+++ b/
drivers/platform/x86/intel_telemetry_pltdrv.c
@@
-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) {