]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
staging: comedi: don't check driver->auto_attach
authorIan Abbott <abbotti@mev.co.uk>
Wed, 14 Nov 2012 13:10:37 +0000 (13:10 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Nov 2012 00:25:47 +0000 (16:25 -0800)
commitaf448aca8fa41789aec8a968a56ed0868c803a2b
treeea98f659a75cde7affa5be5e99ceb33f8525ee92
parent45d6f1965e9a8b830dd69b98cf8d45de53394ee5
staging: comedi: don't check driver->auto_attach

There is no need for `comedi_pci_auto_config()` and
`comedi_usb_auto_config()` to check that `driver->auto_attach` is
non-null before calling `comedi_auto_attach()` as this check is done by
`comedi_auto_config()` itself (actually by
`comedi_auto_config_wrapper()`).  Remove the unnecessary checks.

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