Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5c07550 authored by Figo.zhang's avatar Figo.zhang Committed by Dave Airlie
Browse files

drm/via: vfree() no need checking before calling it



vfree() does it's own NULL checking, no need for explicit check before
calling it.

Signed-off-by: default avatarFigo.zhang <figo1802@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent be25ed9c
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -195,10 +195,8 @@ via_free_sg_info(struct pci_dev *pdev, drm_via_sg_info_t *vsg)
	default:
		vsg->state = dr_via_sg_init;
	}
	if (vsg->bounce_buffer) {
	vfree(vsg->bounce_buffer);
	vsg->bounce_buffer = NULL;
	}
	vsg->free_on_sequence = 0;
}