]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: comedi_bond: no need to free dev->private on detach
authorIan Abbott <abbotti@mev.co.uk>
Fri, 23 Aug 2013 13:45:05 +0000 (14:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Aug 2013 13:41:56 +0000 (06:41 -0700)
commit705ed23a471806b3a74870a5be1a3f44f8b28b7c
treed66c0d4ac016b517a0bf1c7577ea7985776a8ef7
parentf62a34e16f3510a2ec86e9a3f9ed85717427bdbe
staging: comedi: comedi_bond: no need to free dev->private on detach

The comedi core will free `dev->private` if it is non-NULL after calling
the "detach" handler (`bonding_detach()`), so don't bother freeing it in
`bonding_detach()`.

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