The ->gem_free_object never gets called with a NULL pointer, the check is redundant. Also checking after the upcast allows compilers to elide it anyway. Noticed while chasing coverity reports, somehow this one here was not flagged. Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> |
||
|---|---|---|
| .. | ||
| bochs.h | ||
| bochs_drv.c | ||
| bochs_fbdev.c | ||
| bochs_hw.c | ||
| bochs_kms.c | ||
| bochs_mm.c | ||
| Kconfig | ||
| Makefile | ||