Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/tidss: crtc: Change variable name

The tidss_crtc_reset() function stores a pointer to struct
tidss_crtc_state in a variable called tcrtc, while it uses tcrtc as a
pointer to struct tidss_crtc in the rest of the driver.

This is confusing, so let's change the variable name.

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20250902-drm-state-readout-v1-20-14ad5315da3f@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20250902-drm-state-readout-v1-20-14ad5315da3f@kernel.org

+4 -4
+4 -4
drivers/gpu/drm/tidss/tidss_crtc.c
··· 345 345 346 346 static void tidss_crtc_reset(struct drm_crtc *crtc) 347 347 { 348 - struct tidss_crtc_state *tcrtc; 348 + struct tidss_crtc_state *tstate; 349 349 350 350 if (crtc->state) 351 351 __drm_atomic_helper_crtc_destroy_state(crtc->state); 352 352 353 353 kfree(crtc->state); 354 354 355 - tcrtc = kzalloc(sizeof(*tcrtc), GFP_KERNEL); 356 - if (!tcrtc) { 355 + tstate = kzalloc(sizeof(*tstate), GFP_KERNEL); 356 + if (!tstate) { 357 357 crtc->state = NULL; 358 358 return; 359 359 } 360 360 361 - __drm_atomic_helper_crtc_reset(crtc, &tcrtc->base); 361 + __drm_atomic_helper_crtc_reset(crtc, &tstate->base); 362 362 } 363 363 364 364 static struct drm_crtc_state *tidss_crtc_duplicate_state(struct drm_crtc *crtc)