staging: comedi: s626: remove a variable from set_mode_a() and _b()
authorIan Abbott <abbotti@mev.co.uk>
Tue, 8 Oct 2013 18:06:27 +0000 (19:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2013 22:34:19 +0000 (15:34 -0700)
The `set_mode_a()` and `set_mode_b()` functions use a local variable
`setup` which is initialized to the value of parameter `Setup` which is
not used further.  Get rid of the local variable and rename the
parameter to `setup`.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/s626.c

index fcbeb285992334fa7c6b64a1100d46d1cf36cb26..12ebc85f85d3b5d7e2a1156af0b78bc057fe4b9d 100644 (file)
@@ -1958,12 +1958,11 @@ static uint16_t get_mode_b(struct comedi_device *dev, struct enc_private *k)
  * ClkPol, ClkEnab, IndexSrc, IndexPol, LoadSrc.
  */
 static void set_mode_a(struct comedi_device *dev, struct enc_private *k,
-                      uint16_t Setup, uint16_t DisableIntSrc)
+                      uint16_t setup, uint16_t DisableIntSrc)
 {
        struct s626_private *devpriv = dev->private;
        uint16_t cra;
        uint16_t crb;
-       uint16_t setup = Setup; /*  Cache the Standard Setup. */
 
        /* Initialize CRA and CRB images. */
        /* Preload trigger is passed through. */
@@ -2037,12 +2036,11 @@ static void set_mode_a(struct comedi_device *dev, struct enc_private *k,
 }
 
 static void set_mode_b(struct comedi_device *dev, struct enc_private *k,
-                      uint16_t Setup, uint16_t DisableIntSrc)
+                      uint16_t setup, uint16_t DisableIntSrc)
 {
        struct s626_private *devpriv = dev->private;
        uint16_t cra;
        uint16_t crb;
-       uint16_t setup = Setup; /* Cache the Standard Setup. */
 
        /* Initialize CRA and CRB images. */
        /* IndexSrc field is restricted to ENC_X or IndxPol. */