summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2015-12-04 14:22:59 +0800
committerguoyin.chen <guoyin.chen@freescale.com>2016-03-04 15:35:50 +0800
commit7e7cbcb80a20da1e744091a69e52db1b935750a2 (patch)
treec7dac6945e0c1e7382b0a34319f6bdcd683957c9 /board
parent7000dc5701d643ab8ea58feb2f1cfa66015c4ac8 (diff)
downloadu-boot-imx-7e7cbcb80a20da1e744091a69e52db1b935750a2.zip
u-boot-imx-7e7cbcb80a20da1e744091a69e52db1b935750a2.tar.gz
u-boot-imx-7e7cbcb80a20da1e744091a69e52db1b935750a2.tar.bz2
MLK-11951 pfuze: Fix unsigned variable for less-than-zero comparison
According to the Coverity result, a unsigned int variable is used fo less- than-zero comparison, the result is never true. Need to fix the variable type to signed int. Signed-off-by: Ye.Li <B37916@freescale.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/common/pfuze.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/freescale/common/pfuze.c b/board/freescale/common/pfuze.c
index d6a209e..30f6f0a 100644
--- a/board/freescale/common/pfuze.c
+++ b/board/freescale/common/pfuze.c
@@ -12,7 +12,8 @@
int pfuze_mode_init(struct pmic *p, u32 mode)
{
unsigned char offset, i, switch_num;
- u32 id, ret;
+ u32 id;
+ int ret;
pmic_reg_read(p, PFUZE100_DEVICEID, &id);
id = id & 0xf;