From: Simon Glass <sjg@chromium.org>
Date: Fri, 19 Nov 2021 20:23:57 +0000 (-0700)
Subject: video: Tidy up 24/32 BMP blitting
X-Git-Tag: v2025.01-rc5-pxa1908~1591^2~3^2~10
X-Git-Url: http://git.dujemihanovic.xyz/%22http:/kyber.dk/phpMyBuilder/static/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=f5aa93eb532a0ed64ad5b86b827eee71888c70b7;p=u-boot.git

video: Tidy up 24/32 BMP blitting

Drop the unnecessary brackets.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

diff --git a/drivers/video/video_bmp.c b/drivers/video/video_bmp.c
index 466c0f5436..ba36589eff 100644
--- a/drivers/video/video_bmp.c
+++ b/drivers/video/video_bmp.c
@@ -345,10 +345,10 @@ int video_bmp_display(struct udevice *dev, ulong bmp_image, int x, int y,
 					bmap += 3;
 					fb += 2;
 				} else {
-					*(fb++) = *(bmap++);
-					*(fb++) = *(bmap++);
-					*(fb++) = *(bmap++);
-					*(fb++) = 0;
+					*fb++ = *bmap++;
+					*fb++ = *bmap++;
+					*fb++ = *bmap++;
+					*fb++ = 0;
 				}
 			}
 			fb -= priv->line_length + width * (bpix / 8);
@@ -360,10 +360,10 @@ int video_bmp_display(struct udevice *dev, ulong bmp_image, int x, int y,
 	case 32:
 		for (i = 0; i < height; ++i) {
 			for (j = 0; j < width; j++) {
-				*(fb++) = *(bmap++);
-				*(fb++) = *(bmap++);
-				*(fb++) = *(bmap++);
-				*(fb++) = *(bmap++);
+				*fb++ = *bmap++;
+				*fb++ = *bmap++;
+				*fb++ = *bmap++;
+				*fb++ = *bmap++;
 			}
 			fb -= priv->line_length + width * (bpix / 8);
 		}