]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/nouveau/fifo: small cleanup in nvkm_chan_cctx_get()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 30 Apr 2025 08:06:32 +0000 (11:06 +0300)
committerDanilo Krummrich <dakr@kernel.org>
Fri, 16 May 2025 13:52:01 +0000 (15:52 +0200)
"&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 <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/aBHaCM66pXaP84ei@stanley.mountain
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c

index 7d4716dcd51299e62aa3ae0d48cbaade88c981be..f5cd7f7c48b449e657112a787bbb92862058bf6d 100644 (file)
@@ -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;
        }