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>
This commit is contained in:
Ian Abbott 2013-08-23 14:45:05 +01:00 коммит произвёл Greg Kroah-Hartman
Родитель ad9f81f0b5
Коммит c2af5b9681
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -355,8 +355,6 @@ static void bonding_detach(struct comedi_device *dev)
}
kfree(devpriv->devs);
devpriv->devs = NULL;
kfree(devpriv);
dev->private = NULL;
}
}