summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-30 15:45:16 -0700
committerAnatolij Gustschin <agust@denx.de>2016-02-06 13:55:49 +0100
commit2b80b4e246e4f20aec84c15e4da229d07a4c6fad (patch)
treea8190eb9ec61f824de643b02b10dfc2b6ad5d0e0
parente517db73a61376b940a9b352eb717f703f6b25df (diff)
downloadu-boot-imx-2b80b4e246e4f20aec84c15e4da229d07a4c6fad.zip
u-boot-imx-2b80b4e246e4f20aec84c15e4da229d07a4c6fad.tar.gz
u-boot-imx-2b80b4e246e4f20aec84c15e4da229d07a4c6fad.tar.bz2
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>
-rw-r--r--drivers/video/video_bmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/video_bmp.c b/drivers/video/video_bmp.c
index c9075d6..fb7943e 100644
--- a/drivers/video/video_bmp.c
+++ b/drivers/video/video_bmp.c
@@ -194,7 +194,7 @@ int video_bmp_display(struct udevice *dev, ulong bmp_image, int x, int y,
{
struct video_priv *priv = dev_get_uclass_priv(dev);
ushort *cmap_base = NULL;
- ushort i, j;
+ int i, j;
uchar *fb;
struct bmp_image *bmp = map_sysmem(bmp_image, 0);
uchar *bmap;