From: Dan Carpenter Date: Wed, 30 Apr 2025 08:06:32 +0000 (+0300) Subject: drm/nouveau/fifo: small cleanup in nvkm_chan_cctx_get() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b1f230c875d05186604b61a28e6c7db6bd1424d;p=thirdparty%2Fkernel%2Flinux.git 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: Dan Carpenter Link: https://lore.kernel.org/r/aBHaCM66pXaP84ei@stanley.mountain Signed-off-by: Danilo Krummrich --- diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c index 7d4716dcd5129..f5cd7f7c48b44 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c @@ -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; }