This repository was archived by the owner on Oct 3, 2024. It is now read-only.
Commit 305d514
drm/i915/gvt: Use list_entry to access list members
Use list_entry() instead of container_of() to access list members.
Also drop unnecessary and misleading NULL checks on the result of
list_entry().
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20210523172304.3033229-1-linux@roeck-us.net
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>1 parent 3bfa7d4 commit 305d514
1 file changed
+5
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
| 151 | + | |
153 | 152 | | |
154 | 153 | | |
155 | 154 | | |
| |||
357 | 356 | | |
358 | 357 | | |
359 | 358 | | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
| 359 | + | |
| 360 | + | |
364 | 361 | | |
365 | 362 | | |
366 | 363 | | |
| |||
387 | 384 | | |
388 | 385 | | |
389 | 386 | | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
| 387 | + | |
395 | 388 | | |
396 | 389 | | |
397 | 390 | | |
| |||
600 | 593 | | |
601 | 594 | | |
602 | 595 | | |
603 | | - | |
604 | | - | |
| 596 | + | |
605 | 597 | | |
606 | 598 | | |
607 | 599 | | |
| |||
0 commit comments