diff options
author | Tamara Diaconita <diaconitatamara@gmail.com> | 2017-03-07 18:37:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-09 14:28:21 +0100 |
commit | b10ef8aae9656f9d4372d7f4b57b65262146bd87 (patch) | |
tree | 9f726219eb375250f2f5ddc0aa0d1008d699c814 | |
parent | 4be4c379299e47ca00768f67ae47515ac74af3bd (diff) |
staging: speakup: kobjects: Delete space
Added a space after multiple casts to fix the checkpath.pl issue:
CHECK: No space is necessary after a cast.
Signed-off-by: Tamara Diaconita <diaconita.tamara@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/speakup/kobjects.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/speakup/kobjects.c b/drivers/staging/speakup/kobjects.c index 5d871ec3693c..c26643527193 100644 --- a/drivers/staging/speakup/kobjects.c +++ b/drivers/staging/speakup/kobjects.c @@ -108,7 +108,7 @@ static void report_char_chartab_status(int reset, int received, int used, static ssize_t chars_chartab_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) { - char *cp = (char *) buf; + char *cp = (char *)buf; char *end = cp + count; /* the null at the end of the buffer */ char *linefeed = NULL; char keyword[MAX_DESC_LEN + 1]; @@ -475,7 +475,7 @@ static ssize_t punc_show(struct kobject *kobj, struct kobj_attribute *attr, } spin_lock_irqsave(&speakup_info.spinlock, flags); - pb = (struct st_bits_data *) &spk_punc_info[var->value]; + pb = (struct st_bits_data *)&spk_punc_info[var->value]; mask = pb->mask; for (i = 33; i < 128; i++) { if (!(spk_chartab[i] & mask)) @@ -552,7 +552,7 @@ ssize_t spk_var_show(struct kobject *kobj, struct kobj_attribute *attr, return -EINVAL; spin_lock_irqsave(&speakup_info.spinlock, flags); - var = (struct var_t *) param->data; + var = (struct var_t *)param->data; switch (param->var_type) { case VAR_NUM: case VAR_TIME: @@ -744,7 +744,7 @@ static void report_msg_status(int reset, int received, int used, static ssize_t message_store_helper(const char *buf, size_t count, struct msg_group_t *group) { - char *cp = (char *) buf; + char *cp = (char *)buf; char *end = cp + count; char *linefeed = NULL; char *temp = NULL; |