Skip to content

Commit 24528f0

Browse files
tangwenjiNicholas Bellinger
authored andcommitted
target:fix condition return in core_pr_dump_initiator_port()
When is pr_reg->isid_present_at_reg is false,this function should return. This fixes a regression originally introduced by: commit d2843c1 Author: Andy Grover <[email protected]> Date: Thu May 16 10:40:55 2013 -0700 target: Alter core_pr_dump_initiator_port for ease of use Signed-off-by: tangwenji <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
1 parent a2db857 commit 24528f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/target/target_core_pr.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ void core_pr_dump_initiator_port(
5858
char *buf,
5959
u32 size)
6060
{
61-
if (!pr_reg->isid_present_at_reg)
61+
if (!pr_reg->isid_present_at_reg) {
6262
buf[0] = '\0';
63+
return;
64+
}
6365

6466
snprintf(buf, size, ",i,0x%s", pr_reg->pr_reg_isid);
6567
}

0 commit comments

Comments
 (0)