staging: speakup: i18n: Add spaces around operators
authorsayli karnik <karniksayli1995@gmail.com>
Thu, 23 Feb 2017 12:07:31 +0000 (17:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:17:02 +0000 (09:17 +0100)
The patch adds spaces around binary operators as suggested by
checkpatch.pl

Signed-off-by: sayli karnik <karniksayli1995@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/kobjects.c

index ca075fe..4ea441d 100644 (file)
@@ -343,7 +343,7 @@ static ssize_t silent_store(struct kobject *kobj, struct kobj_attribute *attr,
                return -EINVAL;
        }
        spin_lock_irqsave(&speakup_info.spinlock, flags);
-       if (ch&2) {
+       if (ch & 2) {
                shut = 1;
                spk_do_flush();
        } else {
@@ -478,7 +478,7 @@ static ssize_t punc_show(struct kobject *kobj, struct kobj_attribute *attr,
        pb = (struct st_bits_data *) &spk_punc_info[var->value];
        mask = pb->mask;
        for (i = 33; i < 128; i++) {
-               if (!(spk_chartab[i]&mask))
+               if (!(spk_chartab[i] & mask))
                        continue;
                *cp++ = (char)i;
        }