drm/exynos: Remove redundant NULL check in exynos_drm_buf
kfree handles null pointers. Hence this check is not necessary. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Inki Dae <inki.dae@samsung.com>
This commit is contained in:
Родитель
319477f35e
Коммит
ca7c6220bd
|
@ -161,11 +161,6 @@ struct exynos_drm_gem_buf *exynos_drm_init_buf(struct drm_device *dev,
|
||||||
void exynos_drm_fini_buf(struct drm_device *dev,
|
void exynos_drm_fini_buf(struct drm_device *dev,
|
||||||
struct exynos_drm_gem_buf *buffer)
|
struct exynos_drm_gem_buf *buffer)
|
||||||
{
|
{
|
||||||
if (!buffer) {
|
|
||||||
DRM_DEBUG_KMS("buffer is null.\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
kfree(buffer);
|
kfree(buffer);
|
||||||
buffer = NULL;
|
buffer = NULL;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче