drm/nouveau/fifo: small cleanup in nvkm_chan_cctx_get()
Subsystems (4)
PATCH 1/1 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 <[email protected]>
--- drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c +1 -1
@@ -104,7 +104,7 @@ nvkm_chan_cctx_get(struct nvkm_chan *chan, struct nvkm_engn *engn, struct nvkm_cif (cctx) {refcount_inc (&cctx->refs); *pcctx = cctx; -mutex_unlock (&chan->cgrp->mutex); +mutex_unlock (&cgrp->mutex);return 0 ; }
Signature · 1 line
2.47.2
Quoted 3 lines · Dan Carpenter
"
&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.
Applied to drm-misc-next, thanks!