Remove the function nvif_notify_ref() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@xxxxxxxxxxxxxxxxxx> --- drivers/gpu/drm/nouveau/nvif/notify.c | 9 --------- drivers/gpu/drm/nouveau/nvif/notify.h | 1 - 2 files changed, 10 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvif/notify.c b/drivers/gpu/drm/nouveau/nvif/notify.c index 0898c31..d1c26db 100644 --- a/drivers/gpu/drm/nouveau/nvif/notify.c +++ b/drivers/gpu/drm/nouveau/nvif/notify.c @@ -219,15 +219,6 @@ nvif_notify_del(struct nvif_notify *notify) kfree(notify); } -void -nvif_notify_ref(struct nvif_notify *notify, struct nvif_notify **pnotify) -{ - BUG_ON(notify != NULL); - if (*pnotify) - (*pnotify)->dtor(*pnotify); - *pnotify = notify; -} - int nvif_notify_new(struct nvif_object *object, int (*func)(struct nvif_notify *), bool work, u8 type, void *data, u32 size, u32 reply, diff --git a/drivers/gpu/drm/nouveau/nvif/notify.h b/drivers/gpu/drm/nouveau/nvif/notify.h index 9ebfa3b..ea8593e 100644 --- a/drivers/gpu/drm/nouveau/nvif/notify.h +++ b/drivers/gpu/drm/nouveau/nvif/notify.h @@ -34,6 +34,5 @@ int nvif_notify(const void *, u32, const void *, u32); int nvif_notify_new(struct nvif_object *, int (*func)(struct nvif_notify *), bool work, u8 type, void *data, u32 size, u32 reply, struct nvif_notify **); -void nvif_notify_ref(struct nvif_notify *, struct nvif_notify **); #endif -- 1.7.10.4 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel