staging: comedi: remove commented code
authorHari Prasath Gujulan Elango <hgujulan@visteon.com>
Mon, 15 Jun 2015 10:10:18 +0000 (10:10 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Jun 2015 04:56:37 +0000 (21:56 -0700)
This patch removes commented code.This was a checkpatch warning.

Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_fops.c

index 146ab00..985d94b 100644 (file)
@@ -1085,11 +1085,6 @@ static int do_chaninfo_ioctl(struct comedi_device *dev,
                        if (put_user(x, it.rangelist + i))
                                return -EFAULT;
                }
-#if 0
-               if (copy_to_user(it.rangelist, s->range_type_list,
-                                s->n_chan * sizeof(unsigned int)))
-                       return -EFAULT;
-#endif
        }
 
        return 0;