Skip to content

Commit

Permalink
[SCSI] aic7xxx: correct target valid check in aic7xxx_proc.c
Browse files Browse the repository at this point in the history
From: 	Andy Whitcroft <apw@shadowen.org>

Updated to remove the bogus translated target check.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
James Bottomley authored and James Bottomley committed Jun 26, 2005
1 parent 937abea commit c0df28c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/aic7xxx/aic7xxx_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c0df28c

Please sign in to comment.