staging: comedi: remove redundant pointer dereference in comedi_poll()
authorIan Abbott <abbotti@mev.co.uk>
Fri, 2 May 2014 12:50:13 +0000 (13:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 May 2014 00:12:17 +0000 (20:12 -0400)
commit0ce016d0986ae618e0686489ad7b858fa13b885d
tree1fe330a814b1822cebc4bfb69b2a42c472e593ed
parent6e2954e801d7d93fe6f54eff988ddf25836fee0a
staging: comedi: remove redundant pointer dereference in comedi_poll()

`s->async->subdevice` in `comedi_poll()` points to the same `struct
comedi_subdevice` as `s`, so the double pointer reference is redundant.
Just use `s`.

(`s->async->subdevice` is initialized by
`__comedi_device_postconfig_async()` in
"drivers/staging/comedi/drivers.c" and doesn't change.)

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/comedi_fops.c