struct au0828_dmaqueue  *dma_q = urb->context;
        struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq);
        unsigned long flags = 0;
-       int rc, i;
+       int i;
 
        switch (urb->status) {
        case 0:             /* success */
 
        /* Copy data from URB */
        spin_lock_irqsave(&dev->slock, flags);
-       rc = dev->isoc_ctl.isoc_copy(dev, urb);
+       dev->isoc_ctl.isoc_copy(dev, urb);
        spin_unlock_irqrestore(&dev->slock, flags);
 
        /* Reset urb buffers */
 
 
 static u16 pulse_clocks_to_clock_divider(u64 count)
 {
-       u32 rem;
-
-       rem = do_div(count, (FIFO_RXTX << 2) | 0x3);
+       do_div(count, (FIFO_RXTX << 2) | 0x3);
 
        /* net result needs to be rounded down and decremented by 1 */
        if (count > RXCLK_RCD + 1)
 
 
 static u16 pulse_clocks_to_clock_divider(u64 count)
 {
-       u32 rem;
-
-       rem = do_div(count, (FIFO_RXTX << 2) | 0x3);
+       do_div(count, (FIFO_RXTX << 2) | 0x3);
 
        /* net result needs to be rounded down and decremented by 1 */
        if (count > RXCLK_RCD + 1)
                               ssize_t *num)
 {
        struct cx25840_ir_state *ir_state = to_ir_state(sd);
-       struct i2c_client *c;
 
        if (ir_state == NULL)
                return -ENODEV;
 
-       c = ir_state->c;
 #if 0
        /*
         * FIXME - the code below is an incomplete and untested sketch of what
 
 static int snd_em28xx_hw_capture_params(struct snd_pcm_substream *substream,
                                        struct snd_pcm_hw_params *hw_params)
 {
-       unsigned int channels, rate, format;
        int ret;
 
        dprintk("Setting capture parameters\n");
                                params_buffer_bytes(hw_params));
        if (ret < 0)
                return ret;
+#if 0
+       /* TODO: set up em28xx audio chip to deliver the correct audio format,
+          current default is 48000hz multiplexed => 96000hz mono
+          which shouldn't matter since analogue TV only supports mono */
+       unsigned int channels, rate, format;
+
        format = params_format(hw_params);
        rate = params_rate(hw_params);
        channels = params_channels(hw_params);
+#endif
 
-       /* TODO: set up em28xx audio chip to deliver the correct audio format,
-          current default is 48000hz multiplexed => 96000hz mono
-          which shouldn't matter since analogue TV only supports mono */
        return 0;
 }
 
 
                         "get input lines info returned: %d, %s\n", ret,
                         print_buf);
        }
+#else
+       (void)ret;      /* suppress compiler warning */
 #endif
        lines = dev->usbc_buf[1] << 8 | dev->usbc_buf[0];
        mutex_unlock(&dev->usbc_mutex);
 
        default:
                return -EINVAL;
        }
-       return 0;
+       return ret;
 }
 
 static int vidioc_try_ext_ctrls(struct file *file, void *priv,
 
        mode = dev->thread.mode;
        if (UNSET == mode) {
                rx   = saa7134_tvaudio_getstereo(dev);
-               mode = saa7134_tvaudio_rx2mode(t->rxsubchans);
+               mode = saa7134_tvaudio_rx2mode(rx);
        }
        if (mode != t->audmode)
                dev->thread.mode = t->audmode;
 
 
 static int sn9c102_stream_interrupt(struct sn9c102_device* cam)
 {
-       long timeout;
-
        cam->stream = STREAM_INTERRUPT;
-       timeout = wait_event_timeout(cam->wait_stream,
+       wait_event_timeout(cam->wait_stream,
                                     (cam->stream == STREAM_OFF) ||
                                     (cam->state & DEV_DISCONNECTED),
                                     SN9C102_URB_TIMEOUT);