hv: list: rename list_entry to container_of

This function casts a member of a structure out to the containing structure.
So rename to container_of is more readable.

Tracked-On: #4550
Signed-off-by: Li Fei1 <fei1.li@intel.com>
This commit is contained in:
Li Fei1
2020-03-30 10:57:54 +08:00
committed by wenlingz
parent 1328dcb205
commit 7f342bf62f
5 changed files with 12 additions and 12 deletions

View File

@@ -17,7 +17,7 @@
void vcpu_thread(struct thread_object *obj)
{
struct acrn_vcpu *vcpu = list_entry(obj, struct acrn_vcpu, thread_obj);
struct acrn_vcpu *vcpu = container_of(obj, struct acrn_vcpu, thread_obj);
uint32_t basic_exit_reason = 0U;
int32_t ret = 0;