projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
a00d157
)
Merge branch 'master' of git://git.denx.de/u-boot-i2c
author
Tom Rini
<trini@konsulko.com>
Thu, 21 Mar 2019 17:04:42 +0000
(13:04 -0400)
committer
Tom Rini
<trini@konsulko.com>
Thu, 21 Mar 2019 17:04:42 +0000
(13:04 -0400)
- i2c: i2c_cdns: Fix below warnings with checker tool
drivers/i2c/i2c-cdns.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/i2c-cdns.c
b/drivers/i2c/i2c-cdns.c
index 1af94d17614554cda01321f1a6626e3db234ab44..2c0301ad083a0dbc4b7146f9e3a3c640f314960b 100644
(file)
--- a/
drivers/i2c/i2c-cdns.c
+++ b/
drivers/i2c/i2c-cdns.c
@@
-308,14
+308,10
@@
static int cdns_i2c_read_data(struct i2c_cdns_bus *i2c_bus, u32 addr, u8 *data,
{
u8 *cur_data = data;
struct cdns_i2c_regs *regs = i2c_bus->regs;
-
int
curr_recv_count;
+
u32
curr_recv_count;
int updatetx, hold_quirk;
u32 ret;
- /* Check the hardware can handle the requested bytes */
- if ((recv_count < 0))
- return -EINVAL;
-
curr_recv_count = recv_count;
/* Check for the message size against the FIFO depth */