xpp: xtalk -- no private status range
Signed-off-by: Oron Peled <oron.peled@xorcom.com> Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
This commit is contained in:
parent
0e6b068e89
commit
bd49fc9d95
@ -117,25 +117,17 @@ int xtalk_set_protocol(struct xtalk_base *xtalk_base,
|
|||||||
|
|
||||||
stat_msg = (xproto) ? xproto->ack_statuses[i] : NULL;
|
stat_msg = (xproto) ? xproto->ack_statuses[i] : NULL;
|
||||||
if (stat_msg) {
|
if (stat_msg) {
|
||||||
if (!IS_PRIVATE_OP(i)) {
|
|
||||||
ERR("Bad status=0x%X "
|
|
||||||
"(should be in the range [0x%X-0x%X]\n",
|
|
||||||
i, PRIVATE_OP_FIRST, PRIVATE_OP_LAST);
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
xtalk_base->xproto.ack_statuses[i] = stat_msg;
|
xtalk_base->xproto.ack_statuses[i] = stat_msg;
|
||||||
DBG("private: status=0x%X (%s)\n", i, stat_msg);
|
DBG("private: status=0x%X (%s)\n", i, stat_msg);
|
||||||
} else {
|
} else {
|
||||||
if (!IS_PRIVATE_OP(i)) {
|
const char *global_msg;
|
||||||
const char *stat_msg;
|
|
||||||
|
|
||||||
xtalk_base->xproto.ack_statuses[i] =
|
xtalk_base->xproto.ack_statuses[i] =
|
||||||
xproto_base->ack_statuses[i];
|
xproto_base->ack_statuses[i];
|
||||||
stat_msg = xtalk_base->xproto.ack_statuses[i];
|
global_msg = xtalk_base->xproto.ack_statuses[i];
|
||||||
if (stat_msg)
|
if (global_msg)
|
||||||
DBG("global: status=0x%X (%s)\n",
|
DBG("global: status=0x%X (%s)\n",
|
||||||
i, stat_msg);
|
i, global_msg);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
xtalk_base->xproto.name = protoname;
|
xtalk_base->xproto.name = protoname;
|
||||||
|
Loading…
Reference in New Issue
Block a user