diff options
author | Guenter Roeck <linux@roeck-us.net> | 2017-01-22 10:44:46 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-01-22 10:52:22 +0300 |
commit | ad56814fccfba3fe3613fa4d9accff3816786f3c (patch) | |
tree | c2fcd8fedcf54cda44d2f54038778f3fde3ebacf /drivers/input/mouse/bcm5974.c | |
parent | a0d86ecd23a9e8ae36e274191e55068cc4d10129 (diff) | |
download | linux-ad56814fccfba3fe3613fa4d9accff3816786f3c.tar.xz |
Input: mouse - use local variables consistently
If a function declares a variable to access a structure element,
use it consistently.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/bcm5974.c')
-rw-r--r-- | drivers/input/mouse/bcm5974.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/bcm5974.c b/drivers/input/mouse/bcm5974.c index 30e3442518f8..d0122134f320 100644 --- a/drivers/input/mouse/bcm5974.c +++ b/drivers/input/mouse/bcm5974.c @@ -665,7 +665,7 @@ static int bcm5974_wellspring_mode(struct bcm5974 *dev, bool on) char *data; /* Type 3 does not require a mode switch */ - if (dev->cfg.tp_type == TYPE3) + if (c->tp_type == TYPE3) return 0; data = kmalloc(c->um_size, GFP_KERNEL); |