Skip to contentSkip to conversation

drivers: staging: speakup: kobjects: Delete spaces

PATCH In review Tamara Diaconita 2 participants 2 messages Mar 5, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: staging: speakup: kobjects: Delete spaces

Deleted spaces to fix the following checkpath.pl issue:
CHECK: No space is necessary after a cast.

---
 drivers/staging/speakup/kobjects.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/speakup/kobjects.c +4 -4
index 37ee6dd..c442d95 100644
@@ -109,7 +109,7 @@ 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];
@@ -476,7 +476,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))
@@ -553,7 +553,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:
@@ -745,7 +745,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;
Signature · 1 line
2.9.3
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Tamara Diaconita

Deleted spaces to fix the following checkpath.pl issue:
CHECK: No space is necessary after a cast.

Quoted 54 lines
---
 drivers/staging/speakup/kobjects.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/speakup/kobjects.c +4 -5
index 37ee6dd..c442d95 100644
@@ -109,7 +109,7 @@ 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];
@@ -476,7 +476,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))
@@ -553,7 +553,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:
@@ -745,7 +745,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;
--

2.9.3

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170305192517.18409-1-diaconita.tamara%40gmail.com.
For more options, visit https://groups.google.com/d/optout.