Skip to content

Commit 2a1eea8

Browse files
ColinIanKingtdz
authored andcommitted
drm/sysfb: Remove double assignment to pointer crtc_state
The declaration of pointer crtc_state includes an assignment to crtc_state. The double assignment of crtc_state is redundant and can be removed. Fixes: 061963c ("drm/sysfb: Blit to CRTC destination format") Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://lore.kernel.org/r/20250903083106.2703580-1-colin.i.king@gmail.com
1 parent e339a73 commit 2a1eea8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/gpu/drm/sysfb/drm_sysfb_modeset.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,7 @@ void drm_sysfb_plane_helper_atomic_update(struct drm_plane *plane, struct drm_at
238238
struct drm_shadow_plane_state *shadow_plane_state = to_drm_shadow_plane_state(plane_state);
239239
struct drm_framebuffer *fb = plane_state->fb;
240240
unsigned int dst_pitch = sysfb->fb_pitch;
241-
struct drm_crtc_state *crtc_state = crtc_state =
242-
drm_atomic_get_new_crtc_state(state, plane_state->crtc);
241+
struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, plane_state->crtc);
243242
struct drm_sysfb_crtc_state *sysfb_crtc_state = to_drm_sysfb_crtc_state(crtc_state);
244243
const struct drm_format_info *dst_format = sysfb_crtc_state->format;
245244
struct drm_atomic_helper_damage_iter iter;

0 commit comments

Comments
 (0)