staging: comedi: avoid a put_device(), get_device() sequence
authorIan Abbott <abbotti@mev.co.uk>
Mon, 15 Oct 2012 12:07:31 +0000 (13:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 19:43:37 +0000 (12:43 -0700)
In `comedi_set_hw_dev()`, if there is no change to `dev->hw_dev` (and it
is not `NULL`), don't bother putting and getting the device.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

No differences found