Commit c2af5b96 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

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: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ad9f81f0
...@@ -355,8 +355,6 @@ static void bonding_detach(struct comedi_device *dev) ...@@ -355,8 +355,6 @@ static void bonding_detach(struct comedi_device *dev)
} }
kfree(devpriv->devs); kfree(devpriv->devs);
devpriv->devs = NULL; devpriv->devs = NULL;
kfree(devpriv);
dev->private = NULL;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment