Staging: speakup: Remove unused variable
This patch removes variable that was used to store only the return value of a function call. The issue was detected and resolved using the following coccinelle script: @@ expression ret; identifier f; @@ -ret = +return f(...); -return ret; Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6019ee4095
commit
f7d63547ea
1 changed files with 1 additions and 3 deletions
|
@ -840,12 +840,10 @@ static ssize_t message_show(struct kobject *kobj,
|
||||||
static ssize_t message_store(struct kobject *kobj, struct kobj_attribute *attr,
|
static ssize_t message_store(struct kobject *kobj, struct kobj_attribute *attr,
|
||||||
const char *buf, size_t count)
|
const char *buf, size_t count)
|
||||||
{
|
{
|
||||||
ssize_t retval = 0;
|
|
||||||
struct msg_group_t *group = spk_find_msg_group(attr->attr.name);
|
struct msg_group_t *group = spk_find_msg_group(attr->attr.name);
|
||||||
|
|
||||||
BUG_ON(!group);
|
BUG_ON(!group);
|
||||||
retval = message_store_helper(buf, count, group);
|
return message_store_helper(buf, count, group);
|
||||||
return retval;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue