Commit 3a56d700 authored by David Binder's avatar David Binder Committed by Greg Kroah-Hartman

staging: unisys: visorbus: initialize variables

Initializes previously uninitialized variables that were flagged
as being problematic by Smatch.
Signed-off-by: default avatarDavid Binder <david.binder@unisys.com>
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 260d8992
...@@ -491,7 +491,7 @@ static ssize_t toolaction_show(struct device *dev, ...@@ -491,7 +491,7 @@ static ssize_t toolaction_show(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr,
char *buf) char *buf)
{ {
u8 tool_action; u8 tool_action = 0;
visorchannel_read(controlvm_channel, visorchannel_read(controlvm_channel,
offsetof(struct spar_controlvm_channel_protocol, offsetof(struct spar_controlvm_channel_protocol,
...@@ -559,7 +559,7 @@ static ssize_t boottotool_store(struct device *dev, ...@@ -559,7 +559,7 @@ static ssize_t boottotool_store(struct device *dev,
static ssize_t error_show(struct device *dev, struct device_attribute *attr, static ssize_t error_show(struct device *dev, struct device_attribute *attr,
char *buf) char *buf)
{ {
u32 error; u32 error = 0;
visorchannel_read(controlvm_channel, visorchannel_read(controlvm_channel,
offsetof(struct spar_controlvm_channel_protocol, offsetof(struct spar_controlvm_channel_protocol,
...@@ -590,7 +590,7 @@ static ssize_t error_store(struct device *dev, struct device_attribute *attr, ...@@ -590,7 +590,7 @@ static ssize_t error_store(struct device *dev, struct device_attribute *attr,
static ssize_t textid_show(struct device *dev, struct device_attribute *attr, static ssize_t textid_show(struct device *dev, struct device_attribute *attr,
char *buf) char *buf)
{ {
u32 text_id; u32 text_id = 0;
visorchannel_read visorchannel_read
(controlvm_channel, (controlvm_channel,
...@@ -622,7 +622,7 @@ static ssize_t textid_store(struct device *dev, struct device_attribute *attr, ...@@ -622,7 +622,7 @@ static ssize_t textid_store(struct device *dev, struct device_attribute *attr,
static ssize_t remaining_steps_show(struct device *dev, static ssize_t remaining_steps_show(struct device *dev,
struct device_attribute *attr, char *buf) struct device_attribute *attr, char *buf)
{ {
u16 remaining_steps; u16 remaining_steps = 0;
visorchannel_read(controlvm_channel, visorchannel_read(controlvm_channel,
offsetof(struct spar_controlvm_channel_protocol, offsetof(struct spar_controlvm_channel_protocol,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment