Merge branch 'master' of git://git.denx.de/u-boot-i2c
- i2c: i2c_cdns: Fix below warnings with checker tool
This commit is contained in:
		
						commit
						3d7891d3f3
					
				|  | @ -308,14 +308,10 @@ static int cdns_i2c_read_data(struct i2c_cdns_bus *i2c_bus, u32 addr, u8 *data, | ||||||
| { | { | ||||||
| 	u8 *cur_data = data; | 	u8 *cur_data = data; | ||||||
| 	struct cdns_i2c_regs *regs = i2c_bus->regs; | 	struct cdns_i2c_regs *regs = i2c_bus->regs; | ||||||
| 	int curr_recv_count; | 	u32 curr_recv_count; | ||||||
| 	int updatetx, hold_quirk; | 	int updatetx, hold_quirk; | ||||||
| 	u32 ret; | 	u32 ret; | ||||||
| 
 | 
 | ||||||
| 	/* Check the hardware can handle the requested bytes */ |  | ||||||
| 	if ((recv_count < 0)) |  | ||||||
| 		return -EINVAL; |  | ||||||
| 
 |  | ||||||
| 	curr_recv_count = recv_count; | 	curr_recv_count = recv_count; | ||||||
| 
 | 
 | ||||||
| 	/* Check for the message size against the FIFO depth */ | 	/* Check for the message size against the FIFO depth */ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue