提交 c0df28cf 编写于 作者: J James Bottomley 提交者: James Bottomley

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

From: 	Andy Whitcroft <apw@shadowen.org>

Updated to remove the bogus translated target check.
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 937abeaa
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册