V4L/DVB: cx18-alsa: remove a couple of warnings
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Mon, 23 Nov 2009 02:42:33 +0000 (23:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:44 +0000 (15:10 -0300)
Remove a couple of warnings from dead code during driver development.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-alsa-main.c
drivers/media/video/cx18/cx18-alsa-pcm.c

index 9b652a1649c8ba2b08ddc636a1235bbe48b0309e..2b72f42e8461277dc9256d2525b0cb4a8341cf72 100644 (file)
@@ -255,7 +255,6 @@ static int cx18_alsa_exit_callback(struct device *dev, void *data)
 {
        struct v4l2_device *v4l2_dev = dev_get_drvdata(dev);
        struct snd_cx18_card *cxsc;
-       struct cx18 *cx;
 
        if (v4l2_dev == NULL) {
                printk(KERN_ERR "cx18-alsa: %s: struct v4l2_device * is NULL\n",
index ec5851c7855d129535e3ed9a920b3efe89d10e80..05cb8f1753b59b0392beacbca925d688aa7c071b 100644 (file)
@@ -75,7 +75,6 @@ static int snd_cx18_pcm_capture_open(struct snd_pcm_substream *substream)
        struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
        struct snd_pcm_runtime *runtime = substream->runtime;
        struct v4l2_device *v4l2_dev = cxsc->v4l2_dev;
-       struct snd_card *sc = cxsc->sc;
        struct cx18 *cx = to_cx18(v4l2_dev);
        struct cx18_stream *s;
        struct cx18_open_id *item;