From: Ian Abbott Date: Tue, 8 Oct 2013 18:06:27 +0000 (+0100) Subject: staging: comedi: s626: remove a variable from set_mode_a() and _b() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cffd7ab94613d2ec818b64ef8dd7f56b625e1aa2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: comedi: s626: remove a variable from set_mode_a() and _b() 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 Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/s626.c b/drivers/staging/comedi/drivers/s626.c index fcbeb2859923..12ebc85f85d3 100644 --- a/drivers/staging/comedi/drivers/s626.c +++ b/drivers/staging/comedi/drivers/s626.c @@ -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. */