Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231280
b: refs/heads/master
c: f4013c3
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and James Bottomley committed Jan 14, 2011
1 parent ddc36a7 commit c23dcb5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2bae0093cab4ee0a7a8728fdfc35b74569350863
refs/heads/master: f4013c3879d1bbd9f3ab8351185decd049502368
5 changes: 0 additions & 5 deletions trunk/drivers/scsi/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1086,13 +1086,8 @@ static unsigned int sd_check_events(struct gendisk *disk, unsigned int clearing)
*
* Medium present state has changed in either direction.
* Device has indicated UNIT_ATTENTION.
*
* Report SDEV_EVT_MEDIA_CHANGE too for backward compatibility.
*/
if (sdp->changed)
sdev_evt_send_simple(sdp, SDEV_EVT_MEDIA_CHANGE, GFP_KERNEL);
kfree(sshdr);

retval = sdp->changed ? DISK_EVENT_MEDIA_CHANGE : 0;
sdp->changed = 0;
return retval;
Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/scsi/sr.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,6 @@ static unsigned int sr_check_events(struct cdrom_device_info *cdi,
cd->device->changed = 0;
}

/* for backward compatibility */
if (events & DISK_EVENT_MEDIA_CHANGE)
sdev_evt_send_simple(cd->device, SDEV_EVT_MEDIA_CHANGE,
GFP_KERNEL);
return events;
}

Expand Down

0 comments on commit c23dcb5

Please sign in to comment.