if (targ == NULL) return;
ahd_dump_target_state(struct ahd_softc *ahd, struct info_str *info,		      u_int our_id, char channel, u_int target_id,		      u_int target_offset){	struct	ahd_linux_target *targ;	struct  scsi_target *starget;	struct	ahd_initiator_tinfo *tinfo;	struct	ahd_tmode_tstate *tstate;	int	lun;	tinfo = ahd_fetch_transinfo(ahd, channel, our_id,				    target_id, &tstate);	copy_info(info, "Target %d Negotiation Settings\n", target_id);	copy_info(info, "\tUser: ");	ahd_format_transinfo(info, &tinfo->user);	starget = ahd->platform_data->starget[target_offset];	targ = scsi_transport_target_data(starget);	if (targ == NULL)		return;	copy_info(info, "\tGoal: ");	ahd_format_transinfo(info, &tinfo->goal);	copy_info(info, "\tCurr: ");	ahd_format_transinfo(info, &tinfo->curr);	for (lun = 0; lun < AHD_NUM_LUNS; lun++) {		struct scsi_device *dev;		dev = targ->sdev[lun];		if (dev == NULL)			continue;		ahd_dump_device_state(info, dev);	}}