Commit a1277d85 authored by William Hubbs's avatar William Hubbs Committed by Greg Kroah-Hartman

staging: speakup: varhandlers.c style fixes

fix issues reported by checkpatch.pl
Signed-off-by: default avatarWilliam Hubbs <w.d.hubbs@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 7025005f
......@@ -154,8 +154,8 @@ struct st_var_header *var_header_by_name(const char *name)
struct var_t *get_var(enum var_id_t var_id)
{
BUG_ON(var_id < 0 || var_id >= MAXVARS);
BUG_ON(! var_ptrs[var_id]);
return (var_ptrs[var_id]->data);
BUG_ON(!var_ptrs[var_id]);
return var_ptrs[var_id]->data;
}
EXPORT_SYMBOL_GPL(get_var);
......@@ -238,7 +238,8 @@ int set_num_var(int input, struct st_var_header *var, int how)
if (!var_data->u.n.out_str)
l = sprintf(cp, var_data->u.n.synth_fmt, (int)val);
else
l = sprintf(cp, var_data->u.n.synth_fmt, var_data->u.n.out_str[val]);
l = sprintf(cp,
var_data->u.n.synth_fmt, var_data->u.n.out_str[val]);
synth_printf("%s", cp);
return ret;
}
......
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