rpmsg: rpc: fix static checker errors