diff options
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r-- | drivers/scsi/sd.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 7d257465bd98..e56730214c05 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c | |||
@@ -1086,13 +1086,8 @@ out: | |||
1086 | * | 1086 | * |
1087 | * Medium present state has changed in either direction. | 1087 | * Medium present state has changed in either direction. |
1088 | * Device has indicated UNIT_ATTENTION. | 1088 | * Device has indicated UNIT_ATTENTION. |
1089 | * | ||
1090 | * Report SDEV_EVT_MEDIA_CHANGE too for backward compatibility. | ||
1091 | */ | 1089 | */ |
1092 | if (sdp->changed) | ||
1093 | sdev_evt_send_simple(sdp, SDEV_EVT_MEDIA_CHANGE, GFP_KERNEL); | ||
1094 | kfree(sshdr); | 1090 | kfree(sshdr); |
1095 | |||
1096 | retval = sdp->changed ? DISK_EVENT_MEDIA_CHANGE : 0; | 1091 | retval = sdp->changed ? DISK_EVENT_MEDIA_CHANGE : 0; |
1097 | sdp->changed = 0; | 1092 | sdp->changed = 0; |
1098 | return retval; | 1093 | return retval; |