staging: comedi: jr3_pci: remove next_time_max member
authorIan Abbott <abbotti@mev.co.uk>
Fri, 17 Feb 2017 11:09:14 +0000 (11:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:16:58 +0000 (09:16 +0100)
The `next_time_max` member of `struct jr3_pci_subdev_private` is
assigned to, but never read.  Remove it.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/jr3_pci.c

index 500ec50d26bf102a3f628b4ba196b8e45ca52a88..2876c8bdb582e20a6ed063f6f180fedc4818b107 100644 (file)
@@ -102,7 +102,6 @@ struct jr3_pci_dev_private {
 struct jr3_pci_subdev_private {
        struct jr3_channel __iomem *channel;
        unsigned long next_time_min;
-       unsigned long next_time_max;
        enum { state_jr3_poll,
                state_jr3_init_wait_for_offset,
                state_jr3_init_transform_complete,
@@ -611,8 +610,6 @@ static void jr3_pci_poll_dev(unsigned long data)
 
                        spriv->next_time_min = jiffies +
                                               msecs_to_jiffies(sub_delay.min);
-                       spriv->next_time_max = jiffies +
-                                              msecs_to_jiffies(sub_delay.max);
 
                        if (sub_delay.max && sub_delay.max < delay)
                                /*
@@ -776,7 +773,6 @@ static int jr3_pci_auto_attach(struct comedi_device *dev,
                spriv = s->private;
 
                spriv->next_time_min = jiffies + msecs_to_jiffies(500);
-               spriv->next_time_max = jiffies + msecs_to_jiffies(2000);
        }
 
        setup_timer(&devpriv->timer, jr3_pci_poll_dev, (unsigned long)dev);