Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231553
b: refs/heads/master
c: 140e300
h: refs/heads/master
i:
  231551: 4a8433c
v: v3
  • Loading branch information
Tejun Heo authored and James Bottomley committed Jan 4, 2011
1 parent d959703 commit 21e4504
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: eface65c336eff420d70beb0fb6787a732e05ffb
refs/heads/master: 140e3008e7fe1526cbb12f8f07dbc273ac713b75
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 21e4504

Please sign in to comment.