struct stmt *nstmt = NULL;
int link, err;
- if (desc == payload->payload.desc) {
- payload->payload.offset += ctx->pctx.protocol[base].offset;
- return 0;
- }
-
err = supersede_dep(ctx, desc, payload);
if (err <= 0)
return err;
return -1;
list_add_tail(&nstmt->list, &ctx->stmt->list);
} else {
+ /* No conflict: Same payload protocol as context, adjust offset
+ * if needed.
+ */
+ if (desc == payload->payload.desc) {
+ payload->payload.offset +=
+ ctx->pctx.protocol[base].offset;
+ return 0;
+ }
/* If we already have context and this payload is on the same
* base, try to resolve the protocol conflict.
*/