Removes some functions that are not used anywhere: qxl_gem_fini() qxl_gem_init()
This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist <rickard_strandqv...@spectrumdigital.se> --- drivers/gpu/drm/qxl/qxl_drv.h | 2 -- drivers/gpu/drm/qxl/qxl_gem.c | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_drv.h b/drivers/gpu/drm/qxl/qxl_drv.h index 7c6cafe..32b7743 100644 --- a/drivers/gpu/drm/qxl/qxl_drv.h +++ b/drivers/gpu/drm/qxl/qxl_drv.h @@ -400,8 +400,6 @@ void qxl_crtc_set_from_monitors_config(struct qxl_device *qdev); void qxl_alloc_client_monitors_config(struct qxl_device *qdev, unsigned count); /* qxl_gem.c */ -int qxl_gem_init(struct qxl_device *qdev); -void qxl_gem_fini(struct qxl_device *qdev); int qxl_gem_object_create(struct qxl_device *qdev, int size, int alignment, int initial_domain, bool discardable, bool kernel, diff --git a/drivers/gpu/drm/qxl/qxl_gem.c b/drivers/gpu/drm/qxl/qxl_gem.c index b96f0c9..fd6ef25 100644 --- a/drivers/gpu/drm/qxl/qxl_gem.c +++ b/drivers/gpu/drm/qxl/qxl_gem.c @@ -104,14 +104,3 @@ void qxl_gem_object_close(struct drm_gem_object *obj, struct drm_file *file_priv) { } - -int qxl_gem_init(struct qxl_device *qdev) -{ - INIT_LIST_HEAD(&qdev->gem.objects); - return 0; -} - -void qxl_gem_fini(struct qxl_device *qdev) -{ - qxl_bo_force_delete(qdev); -} -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/