staging: unisys: remove wmb() in visordriver_remove_device

Don't need to have a wmb() in visordriver_remove_device. Also removed
an unnecessary check for drv being null.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
David Kershner 2016-03-30 20:38:49 -04:00 committed by Greg Kroah-Hartman
parent 527486ee8f
commit 64938182e7
1 changed files with 2 additions and 10 deletions

View File

@ -613,20 +613,12 @@ visordriver_remove_device(struct device *xdev)
drv = to_visor_driver(xdev->driver);
down(&dev->visordriver_callback_lock);
dev->being_removed = true;
/*
* ensure that the dev->being_removed flag is set before we start the
* actual removal
*/
wmb();
if (drv) {
if (drv->remove)
drv->remove(dev);
}
up(&dev->visordriver_callback_lock);
dev_stop_periodic_work(dev);
put_device(&dev->device);
return 0;
}