mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
tcmu: drop configured check in destroy
destroy_device is only called if we have successfully run configure_device, so drop the duplicate tcmu_dev_configured check. Signed-off-by: Mike Christie <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
1 parent
be50f538e9
commit
531283ff75
1 file changed
+2
-4
@@ -1593,11 +1593,9 @@ static void tcmu_destroy_device(struct se_device *dev)
|
||||
|
||||
tcmu_blocks_release(udev);
|
||||
|
||||
if (tcmu_dev_configured(udev)) {
|
||||
tcmu_netlink_event(udev, TCMU_CMD_REMOVED_DEVICE, 0, NULL);
|
||||
tcmu_netlink_event(udev, TCMU_CMD_REMOVED_DEVICE, 0, NULL);
|
||||
|
||||
uio_unregister_device(&udev->uio_info);
|
||||
}
|
||||
uio_unregister_device(&udev->uio_info);
|
||||
}
|
||||
|
||||
enum {
|
||||
|
||||
Reference in new issue
Block a user