mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 18:27:22 +00:00
drm2: whack set-but-not-used warns
This commit is contained in:
parent
180c02405b
commit
c9130a46bc
|
@ -536,7 +536,7 @@ void
|
|||
drm_event_wakeup(struct drm_pending_event *e)
|
||||
{
|
||||
struct drm_file *file_priv;
|
||||
struct drm_device *dev;
|
||||
struct drm_device *dev __diagused;
|
||||
|
||||
file_priv = e->file_priv;
|
||||
dev = file_priv->minor->dev;
|
||||
|
|
|
@ -245,7 +245,7 @@ static void ttm_vt_lock_remove(struct ttm_base_object **p_base)
|
|||
{
|
||||
struct ttm_base_object *base = *p_base;
|
||||
struct ttm_lock *lock = container_of(base, struct ttm_lock, base);
|
||||
int ret;
|
||||
int ret __diagused;
|
||||
|
||||
*p_base = NULL;
|
||||
ret = __ttm_vt_unlock(lock);
|
||||
|
|
|
@ -243,7 +243,7 @@ void ttm_dma_tt_fini(struct ttm_dma_tt *ttm_dma)
|
|||
|
||||
void ttm_tt_unbind(struct ttm_tt *ttm)
|
||||
{
|
||||
int ret;
|
||||
int ret __diagused;
|
||||
|
||||
if (ttm->state == tt_bound) {
|
||||
ret = ttm->func->unbind(ttm);
|
||||
|
|
Loading…
Reference in a new issue