Commit 4b1f230c authored by Dan Carpenter's avatar Dan Carpenter Committed by Danilo Krummrich
Browse files

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



"&chan->cgrp->mutex" and "&cgrp->mutex" are the same thing.  Use
"&cgrp->mutex" consistently.  It looks nicer and it silences a
Smatch static checker warning.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/aBHaCM66pXaP84ei@stanley.mountain


Signed-off-by: default avatarDanilo Krummrich <dakr@kernel.org>
parent e0677e52
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,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;
	}