]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: Tidy up 24/32 BMP blitting
authorSimon Glass <sjg@chromium.org>
Fri, 19 Nov 2021 20:23:57 +0000 (13:23 -0700)
committerAnatolij Gustschin <agust@denx.de>
Sun, 26 Dec 2021 22:02:19 +0000 (23:02 +0100)
Drop the unnecessary brackets.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/video/video_bmp.c

index 466c0f54363d5929e77815ef9be541ea963da8fc..ba36589effb1f6b92e55d2b9026f89bd5f915eb1 100644 (file)
@@ -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);
                }