Assign initial value to variable in order to prevent gcc warning about
uninitialized variable.
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com>
Signed-off-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
struct device_attribute *attr, char *buf)
{
- int ret, enabled;
+ int ret, enabled = 0;
if (old_ec_model) {
ret = get_wireless_state(&enabled, NULL);
struct device_attribute *attr, char *buf)
{
- int ret, enabled;
+ int ret, enabled = 0;
if (old_ec_model) {
ret = get_wireless_state(NULL, &enabled);