[PATCH] drm/nouveau: move assignment out of condition and fix spacing

2025-08-18 Thread darshanrathod475
From: Darshan Rathod Simplify conditional logic by moving the assignment of pll_lim.reg to reg1 out of the if() statement. Also adjust spacing in an if() statement for consistency with kernel style. Signed-off-by: Darshan Rathod --- drivers/gpu/drm/nouveau/dispnv04/hw.c | 6 -- 1 file chan

[PATCH] drm/nouveau: avoid assignment in if condition

2025-08-18 Thread darshanrathod475
From: Darshan Rathod Move kzalloc assignment out of the if condition to follow kernel coding style guidelines and improve readability. Signed-off-by: Darshan Rathod --- drivers/gpu/drm/nouveau/nvkm/engine/falcon.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/

[PATCH] drm/nouveau/acr: remove assignments from conditional statements

2025-08-13 Thread darshanrathod475
From: Darshan Rathod Replace assignments inside if statements with separate assignment and conditional check. Assigning variables in conditionals can obscure the code flow and reduce readability. This change improves clarity and follows common kernel coding style practice. There is no change to