diff mbox series

[3/3] drm/fbdev-generic: optimize out a redundant assignment clause

Message ID 20230330084911.1565071-3-15330273260@189.cn (mailing list archive)
State New, archived
Headers show
Series [1/3] dma-buf/dma-buf.c: add a blank line between the two adjoining functions | expand

Commit Message

Sui Jingfeng March 30, 2023, 8:49 a.m. UTC
From: Sui Jingfeng <suijingfeng@loongson.cn>

 The assignment already done in drm_client_buffer_vmap(), this patch save
 a copy. No functional change.

Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn>
---
 drivers/gpu/drm/drm_fbdev_generic.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/drm_fbdev_generic.c b/drivers/gpu/drm/drm_fbdev_generic.c
index 8e5148bf40bb..be4522268927 100644
--- a/drivers/gpu/drm/drm_fbdev_generic.c
+++ b/drivers/gpu/drm/drm_fbdev_generic.c
@@ -183,7 +183,7 @@  static int drm_fbdev_generic_damage_blit(struct drm_fb_helper *fb_helper,
 					 struct drm_clip_rect *clip)
 {
 	struct drm_client_buffer *buffer = fb_helper->buffer;
-	struct iosys_map map, dst;
+	struct iosys_map map;
 	int ret;
 
 	/*
@@ -203,8 +203,7 @@  static int drm_fbdev_generic_damage_blit(struct drm_fb_helper *fb_helper,
 	if (ret)
 		goto out;
 
-	dst = map;
-	drm_fbdev_generic_damage_blit_real(fb_helper, clip, &dst);
+	drm_fbdev_generic_damage_blit_real(fb_helper, clip, &map);
 
 	drm_client_buffer_vunmap(buffer);