Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
[firefly-linux-kernel-4.4.55.git] / drivers / staging / speakup / devsynth.c
index 71c728acf4ca1c28892fa1beebbb5cdea2095f6a..d1ffdf4c0c4bdab4d60bc0aeb22334a9efd380d0 100644 (file)
@@ -22,7 +22,7 @@ static ssize_t speakup_file_write(struct file *fp, const char __user *buffer,
        unsigned long flags;
        u_char buf[256];
 
-       if (synth == NULL)
+       if (!synth)
                return -ENODEV;
        while (count > 0) {
                bytes = min(count, sizeof(buf));
@@ -45,7 +45,7 @@ static ssize_t speakup_file_read(struct file *fp, char __user *buf,
 
 static int speakup_file_open(struct inode *ip, struct file *fp)
 {
-       if (synth == NULL)
+       if (!synth)
                return -ENODEV;
        if (xchg(&dev_opened, 1))
                return -EBUSY;