From 5c3e29843cf49d11238145ee71feb4b317ce8eab Mon Sep 17 00:00:00 2001 From: James Bottomley Date: Sat, 25 Jun 2005 16:23:44 -0500 Subject: [PATCH] --- yaml --- r: 4979 b: refs/heads/master c: c0df28cfe012652160a530f9aa74b0a49c77eac5 h: refs/heads/master i: 4977: 9b5a9cb525fb1cac21d93b1528a58bb308cc2901 4975: 095467572156b79b0a5ae75346b963ab1a952533 v: v3 --- [refs] | 2 +- trunk/drivers/scsi/aic7xxx/aic7xxx_proc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index bc5e8c120c3e..059d65b7652d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 937abeaadf1b00252690f9de35b9df13feb0afd7 +refs/heads/master: c0df28cfe012652160a530f9aa74b0a49c77eac5 diff --git a/trunk/drivers/scsi/aic7xxx/aic7xxx_proc.c b/trunk/drivers/scsi/aic7xxx/aic7xxx_proc.c index ab4469d83fb1..3802c91f0b07 100644 --- a/trunk/drivers/scsi/aic7xxx/aic7xxx_proc.c +++ b/trunk/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);