This patch resolves svace warnings "SIGNED_TO_BIGGER_UNSIGNED", which
means assignment of a signed value which has type int(void*) to a
variable of a bigger integer type uint64_t.
Change-Id: Icb9576641a41f695272d61fd1f0847884b865935
Signed-off-by: Dongwoo <dwoo08.lee@samsung.com>
thor_send_data_rsp(conn, 0, ++usb_pkt_cnt);
}
- ctx->remain = (total - recv) + buf - ctx->transfer_buffer;
+ ctx->remain = (total - recv) + (uint64_t)(buf - ctx->transfer_buffer);
if ((total - recv) > 0) {
n = thor_rx_data(conn, buf, packet_size);