summaryrefslogtreecommitdiff
path: root/board/freescale
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:53:34 +0800
commitb77819730f3d75c50896c6f3de8535ab8ed19c51 (patch)
treec7dac6945e0c1e7382b0a34319f6bdcd683957c9 /board/freescale
parent327a3cf1ce613f2107a0770612ecf867bb02bf5c (diff)
downloadu-boot-imx-b77819730f3d75c50896c6f3de8535ab8ed19c51.zip
u-boot-imx-b77819730f3d75c50896c6f3de8535ab8ed19c51.tar.gz
u-boot-imx-b77819730f3d75c50896c6f3de8535ab8ed19c51.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/freescale')
-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;