diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2013-08-23 14:45:05 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-26 06:41:56 -0700 |
commit | c2af5b9681a9d1beaf37310ee3d6a5c4860750d5 (patch) | |
tree | d66c0d4ac016b517a0bf1c7577ea7985776a8ef7 /drivers/staging/comedi | |
parent | ad9f81f0b591986db6db1f750d7203db2d33c040 (diff) | |
download | blackbird-obmc-linux-c2af5b9681a9d1beaf37310ee3d6a5c4860750d5.tar.gz blackbird-obmc-linux-c2af5b9681a9d1beaf37310ee3d6a5c4860750d5.zip |
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>
Diffstat (limited to 'drivers/staging/comedi')
-rw-r--r-- | drivers/staging/comedi/drivers/comedi_bond.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/comedi_bond.c b/drivers/staging/comedi/drivers/comedi_bond.c index ab5451ec3480..a2cc28565586 100644 --- a/drivers/staging/comedi/drivers/comedi_bond.c +++ b/drivers/staging/comedi/drivers/comedi_bond.c @@ -355,8 +355,6 @@ static void bonding_detach(struct comedi_device *dev) } kfree(devpriv->devs); devpriv->devs = NULL; - kfree(devpriv); - dev->private = NULL; } } |