From: James Bottomley Date: Sat, 25 Jun 2005 21:23:44 +0000 (-0500) Subject: [SCSI] aic7xxx: correct target valid check in aic7xxx_proc.c X-Git-Tag: v2.6.13-rc4~75^2~47 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c0df28cfe012652160a530f9aa74b0a49c77eac5;p=linux-2.6-omap-h63xx.git [SCSI] aic7xxx: correct target valid check in aic7xxx_proc.c From: Andy Whitcroft Updated to remove the bogus translated target check. Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/aic7xxx/aic7xxx_proc.c b/drivers/scsi/aic7xxx/aic7xxx_proc.c index ab4469d83fb..3802c91f0b0 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);