diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-05-28 07:52:51 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-17 13:04:45 -0400 |
commit | 3471c288036bf0835a82d0b1bbce2002f6e68390 (patch) | |
tree | 9a646a16877b7c600c583a32f703dd02a621c603 /drivers/scsi/NCR53c406a.c | |
parent | e3df715501be3329986e5d9dfa9a477f49e7996b (diff) |
[SCSI] Remove no-op implementations of SCSI EH hooks
Drivers need not implement a hook that returns FAILED, and does nothing
else, since the SCSI midlayer code will do that for us.
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/NCR53c406a.c')
-rw-r--r-- | drivers/scsi/NCR53c406a.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/scsi/NCR53c406a.c b/drivers/scsi/NCR53c406a.c index c685d546f838..7c025b6cdd7c 100644 --- a/drivers/scsi/NCR53c406a.c +++ b/drivers/scsi/NCR53c406a.c | |||
@@ -722,12 +722,6 @@ static int NCR53c406a_queue(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *)) | |||
722 | return 0; | 722 | return 0; |
723 | } | 723 | } |
724 | 724 | ||
725 | static int NCR53c406a_abort(Scsi_Cmnd * SCpnt) | ||
726 | { | ||
727 | DEB(printk("NCR53c406a_abort called\n")); | ||
728 | return FAILED; /* Don't know how to abort */ | ||
729 | } | ||
730 | |||
731 | static int NCR53c406a_host_reset(Scsi_Cmnd * SCpnt) | 725 | static int NCR53c406a_host_reset(Scsi_Cmnd * SCpnt) |
732 | { | 726 | { |
733 | DEB(printk("NCR53c406a_reset called\n")); | 727 | DEB(printk("NCR53c406a_reset called\n")); |
@@ -741,16 +735,6 @@ static int NCR53c406a_host_reset(Scsi_Cmnd * SCpnt) | |||
741 | return SUCCESS; | 735 | return SUCCESS; |
742 | } | 736 | } |
743 | 737 | ||
744 | static int NCR53c406a_device_reset(Scsi_Cmnd * SCpnt) | ||
745 | { | ||
746 | return FAILED; | ||
747 | } | ||
748 | |||
749 | static int NCR53c406a_bus_reset(Scsi_Cmnd * SCpnt) | ||
750 | { | ||
751 | return FAILED; | ||
752 | } | ||
753 | |||
754 | static int NCR53c406a_biosparm(struct scsi_device *disk, | 738 | static int NCR53c406a_biosparm(struct scsi_device *disk, |
755 | struct block_device *dev, | 739 | struct block_device *dev, |
756 | sector_t capacity, int *info_array) | 740 | sector_t capacity, int *info_array) |
@@ -1075,9 +1059,6 @@ static Scsi_Host_Template driver_template = | |||
1075 | .release = NCR53c406a_release, | 1059 | .release = NCR53c406a_release, |
1076 | .info = NCR53c406a_info /* info */, | 1060 | .info = NCR53c406a_info /* info */, |
1077 | .queuecommand = NCR53c406a_queue /* queuecommand */, | 1061 | .queuecommand = NCR53c406a_queue /* queuecommand */, |
1078 | .eh_abort_handler = NCR53c406a_abort /* abort */, | ||
1079 | .eh_bus_reset_handler = NCR53c406a_bus_reset /* reset */, | ||
1080 | .eh_device_reset_handler = NCR53c406a_device_reset /* reset */, | ||
1081 | .eh_host_reset_handler = NCR53c406a_host_reset /* reset */, | 1062 | .eh_host_reset_handler = NCR53c406a_host_reset /* reset */, |
1082 | .bios_param = NCR53c406a_biosparm /* biosparm */, | 1063 | .bios_param = NCR53c406a_biosparm /* biosparm */, |
1083 | .can_queue = 1 /* can_queue */, | 1064 | .can_queue = 1 /* can_queue */, |