diff options
author | James Bottomley <James.Bottomley@steeleye.com> | 2005-06-25 17:23:44 -0400 |
---|---|---|
committer | James Bottomley <jejb@titanic.(none)> | 2005-06-26 13:22:30 -0400 |
commit | c0df28cfe012652160a530f9aa74b0a49c77eac5 (patch) | |
tree | 2df1c8b22b1ddaffb4ad073bd0cd585808c095b3 /drivers/scsi | |
parent | 937abeaadf1b00252690f9de35b9df13feb0afd7 (diff) |
[SCSI] aic7xxx: correct target valid check in aic7xxx_proc.c
From: Andy Whitcroft <apw@shadowen.org>
Updated to remove the bogus translated target check.
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_proc.c b/drivers/scsi/aic7xxx/aic7xxx_proc.c index ab4469d83fb1..3802c91f0b07 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_proc.c +++ b/drivers/scsi/aic7xxx/aic7xxx_proc.c | |||
@@ -155,9 +155,9 @@ ahc_dump_target_state(struct ahc_softc *ahc, struct info_str *info, | |||
155 | copy_info(info, "\tUser: "); | 155 | copy_info(info, "\tUser: "); |
156 | ahc_format_transinfo(info, &tinfo->user); | 156 | ahc_format_transinfo(info, &tinfo->user); |
157 | starget = ahc->platform_data->starget[target_offset]; | 157 | starget = ahc->platform_data->starget[target_offset]; |
158 | targ = scsi_transport_target_data(starget); | 158 | if (!starget) |
159 | if (targ == NULL) | ||
160 | return; | 159 | return; |
160 | targ = scsi_transport_target_data(starget); | ||
161 | 161 | ||
162 | copy_info(info, "\tGoal: "); | 162 | copy_info(info, "\tGoal: "); |
163 | ahc_format_transinfo(info, &tinfo->goal); | 163 | ahc_format_transinfo(info, &tinfo->goal); |