diff options
author | Haibo Chen <haibo.chen@nxp.com> | 2016-01-12 14:36:48 +0800 |
---|---|---|
committer | guoyin.chen <guoyin.chen@freescale.com> | 2016-03-04 15:53:38 +0800 |
commit | ad500dbddef6b78383eead2587a08e4b50403358 (patch) | |
tree | fa15845f48c3816757cb9b5cf3a7323ca7675c81 /board/cirrus | |
parent | a15a650e05e1a0f5cfabcf61e20ff543df14f5c8 (diff) | |
download | u-boot-imx-ad500dbddef6b78383eead2587a08e4b50403358.zip u-boot-imx-ad500dbddef6b78383eead2587a08e4b50403358.tar.gz u-boot-imx-ad500dbddef6b78383eead2587a08e4b50403358.tar.bz2 |
MLK-12209 mmc: cast u8 to unsigned long long to avoid unexpected error
unsigned long long data might have strange data if first bit of u8 data
was 1. this patch cast it to (unsigned long long)
ex)
u8 data8;
u64 data64;
data8 = 0x80;
data64 = (data8 << 24); // 0xffffffff80000000
data64 = (((unsigned long long)data8) << 24); // 0x80000000;
(reported by Coverity)
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Diffstat (limited to 'board/cirrus')
0 files changed, 0 insertions, 0 deletions