Commit 2b80b4e246e4f20aec84c15e4da229d07a4c6fad

Authored by Simon Glass
Committed by Anatolij Gustschin
1 parent e517db73a6

video: Use 'int' for loop variables instead of short

Using short doesn't save anything and is confusing when the width and height
variables are ulong.

This may fix Coverity CID134902 but I doubt it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/video/video_bmp.c
... ... @@ -194,7 +194,7 @@
194 194 {
195 195 struct video_priv *priv = dev_get_uclass_priv(dev);
196 196 ushort *cmap_base = NULL;
197   - ushort i, j;
  197 + int i, j;
198 198 uchar *fb;
199 199 struct bmp_image *bmp = map_sysmem(bmp_image, 0);
200 200 uchar *bmap;