]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: speakup/kobjects: Use NULL instead of 0
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 22 May 2013 09:07:24 +0000 (14:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 May 2013 22:35:39 +0000 (15:35 -0700)
Use NULL instead of 0 for pointers.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/kobjects.c

index 5c93bb388f34d9b3fa13afd9cbc3e3e41d152178..51bdea3a5beada9a6de419abc9dad9b658355ad3 100644 (file)
@@ -521,7 +521,7 @@ static ssize_t punc_store(struct kobject *kobj, struct kobj_attribute *attr,
        spin_lock_irqsave(&speakup_info.spinlock, flags);
 
        if (*punc_buf == 'd' || *punc_buf == 'r')
-               x = spk_set_mask_bits(0, var->value, 3);
+               x = spk_set_mask_bits(NULL, var->value, 3);
        else
                x = spk_set_mask_bits(punc_buf, var->value, 3);