Skip to content

Commit a29f245

Browse files
julianwiedmanndavem330
authored andcommitted
net/iucv: fix indentation in __iucv_message_receive()
smatch complains about net/iucv/iucv.c:1119 __iucv_message_receive() warn: inconsistent indenting While touching this line, also make the return logic consistent and thus get rid of a goto label. Signed-off-by: Julian Wiedmann <[email protected]> Reviewed-by: Karsten Graul <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 398999b commit a29f245

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

net/iucv/iucv.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,10 +1116,9 @@ int __iucv_message_receive(struct iucv_path *path, struct iucv_message *msg,
11161116
if (msg->flags & IUCV_IPRMDATA)
11171117
return iucv_message_receive_iprmdata(path, msg, flags,
11181118
buffer, size, residual);
1119-
if (cpumask_empty(&iucv_buffer_cpumask)) {
1120-
rc = -EIO;
1121-
goto out;
1122-
}
1119+
if (cpumask_empty(&iucv_buffer_cpumask))
1120+
return -EIO;
1121+
11231122
parm = iucv_param[smp_processor_id()];
11241123
memset(parm, 0, sizeof(union iucv_param));
11251124
parm->db.ipbfadr1 = (u32)(addr_t) buffer;
@@ -1135,7 +1134,6 @@ int __iucv_message_receive(struct iucv_path *path, struct iucv_message *msg,
11351134
if (residual)
11361135
*residual = parm->db.ipbfln1f;
11371136
}
1138-
out:
11391137
return rc;
11401138
}
11411139
EXPORT_SYMBOL(__iucv_message_receive);

0 commit comments

Comments
 (0)