summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@steeleye.com>2005-06-25 23:23:44 +0200
committerJames Bottomley <jejb@titanic.(none)>2005-06-26 19:22:30 +0200
commitc0df28cfe012652160a530f9aa74b0a49c77eac5 (patch)
tree2df1c8b22b1ddaffb4ad073bd0cd585808c095b3 /drivers/scsi/aic7xxx
parent[SCSI] use list_for_each_entry_safe in scsi_error.c (diff)
downloadlinux-c0df28cfe012652160a530f9aa74b0a49c77eac5.tar.xz
linux-c0df28cfe012652160a530f9aa74b0a49c77eac5.zip
[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/aic7xxx')
-rw-r--r--drivers/scsi/aic7xxx/aic7xxx_proc.c4
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,
copy_info(info, "\tUser: ");
ahc_format_transinfo(info, &tinfo->user);
starget = ahc->platform_data->starget[target_offset];
- targ = scsi_transport_target_data(starget);
- if (targ == NULL)
+ if (!starget)
return;
+ targ = scsi_transport_target_data(starget);
copy_info(info, "\tGoal: ");
ahc_format_transinfo(info, &tinfo->goal);