mtp_uint32 _hdlr_get_param_cmd_container(cmd_container_t *cntr,
mtp_uint32 index)
{
- if (index < cntr->no_param) {
+ if (index < cntr->no_param)
return cntr->params[index];
- }
+
return 0;
}
dst->no_param =
(src->len - sizeof(header_container_t)) / sizeof(mtp_uint32);
- for (ii = 0; ii < dst->no_param; ii++) {
+ for (ii = 0; ii < dst->no_param; ii++)
dst->params[ii] = src->params[ii];
- }
+
return;
}
dst->len = src->len;
dst->no_param = src->no_param;
- for (ii = 0; ii < dst->no_param; ii++) {
+ for (ii = 0; ii < dst->no_param; ii++)
dst->params[ii] = src->params[ii];
- }
return;
}