diff options
author | Ye.Li <B37916@freescale.com> | 2015-12-04 14:22:59 +0800 |
---|---|---|
committer | Ye.Li <B37916@freescale.com> | 2015-12-04 14:33:21 +0800 |
commit | 3de039f82371e8ba65e28fda43621f5a70766f55 (patch) | |
tree | 98baec33af5e4a37056f5a9aa32aa0cfc785301d | |
parent | 3e7b1092f677915214fb2abe08adda37177f763b (diff) | |
download | u-boot-imx-3de039f82371e8ba65e28fda43621f5a70766f55.zip u-boot-imx-3de039f82371e8ba65e28fda43621f5a70766f55.tar.gz u-boot-imx-3de039f82371e8ba65e28fda43621f5a70766f55.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>
-rw-r--r-- | board/freescale/common/pfuze.c | 3 |
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; |