diff mbox series

drm/nouveau/fifo: small cleanup in nvkm_chan_cctx_get()

Message ID Y3Jdx+pFyv0CWLZm@kili (mailing list archive)
State New, archived
Headers show
Series drm/nouveau/fifo: small cleanup in nvkm_chan_cctx_get() | expand

Commit Message

Dan Carpenter Nov. 15, 2022, 1:16 p.m. UTC
The "&chan->cgrp->mutex" and "&cgrp->mutex" variables refer to the same
thing.  Use "&cgrp->mutex" consistently.

Signed-off-by: Dan Carpenter <error27@gmail.com>
---
 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c
index b7c9d6115bce..790b73ee5272 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c
@@ -105,7 +105,7 @@  nvkm_chan_cctx_get(struct nvkm_chan *chan, struct nvkm_engn *engn, struct nvkm_c
 	if (cctx) {
 		refcount_inc(&cctx->refs);
 		*pcctx = cctx;
-		mutex_unlock(&chan->cgrp->mutex);
+		mutex_unlock(&cgrp->mutex);
 		return 0;
 	}