tree 2df1c8b22b1ddaffb4ad073bd0cd585808c095b3
parent 937abeaadf1b00252690f9de35b9df13feb0afd7
author James Bottomley <[EMAIL PROTECTED]> Sun, 26 Jun 2005 02:23:44 -0500
committer James Bottomley <[EMAIL PROTECTED](none)> Sun, 26 Jun 2005 22:22:30 
-0500

[SCSI] aic7xxx: correct target valid check in aic7xxx_proc.c

From:   Andy Whitcroft <[EMAIL PROTECTED]>

Updated to remove the bogus translated target check.

Signed-off-by: James Bottomley <[EMAIL PROTECTED]>

 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
--- 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 *
        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);
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to