[PATCH] drm/vc4: clean up error exit path on failed dpi_connector allocation

2016-06-06 Thread Eric Anholt
Colin King writes: > From: Colin Ian King > > There is redundant code in the clean up exit path when dpi_connector > fails to be allocated. The current code checks if connector is NULL > before destroying it, in fact, connector is NULL at this point so > the check is redundant and can be remove

[PATCH] drm/vc4: clean up error exit path on failed dpi_connector allocation

2016-06-02 Thread Colin King
From: Colin Ian King There is redundant code in the clean up exit path when dpi_connector fails to be allocated. The current code checks if connector is NULL before destroying it, in fact, connector is NULL at this point so the check is redundant and can be removed. The final clean up is that we