V4L/DVB: cx25821: fix coding style issues in cx25821-alsa.c
authorsai gopal <tsg321@gmail.com>
Wed, 28 Apr 2010 17:17:00 +0000 (14:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:58:34 +0000 (12:58 -0300)
This is a patch to cx25821-alsa.c file that fixes of most of the
warning & errors found by checkpatch.pl tool

[mchehab@redhat.com: Fix conflicts with changeset 4e0c923a0d23f86c7331b32bc2aeb280e10e029e]
Signed-off-by: sai gopal <tsg321@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/cx25821/cx25821-alsa.c

index 33e559d..1798975 100644 (file)
@@ -718,7 +718,8 @@ static int cx25821_audio_initdev(struct cx25821_dev *dev)
                goto error;
        }
 
-       if ((err == snd_cx25821_pcm(chip, 0, "cx25821 Digital")) < 0) {
+       err = snd_cx25821_pcm(chip, 0, "cx25821 Digital");
+       if (err < 0) {
                printk(KERN_INFO
                       "DEBUG ERROR: cannot create snd_cx25821_pcm %s\n",
                       __func__);