Felipe Balbi baf3d7b721 i2c: omap: simplify num_bytes handling
trivial patch, no functional changes

If the fifo is disabled or fifo_size is 0 the num_bytes
is set to 1. Else it is set to fifo_size or in case of a
draining interrupt the remaining bytes in the buff stat.
So the zero check is redundant and can be safely optimised.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Reviewed-by : Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
2012-09-12 15:01:52 +02:00
..
2012-07-24 14:13:56 +02:00
2012-09-12 11:37:24 +02:00
2012-07-24 14:13:56 +02:00
2011-03-31 11:26:23 -03:00
2012-07-24 14:13:56 +02:00
2008-01-27 18:14:45 +01:00
2012-09-11 23:40:53 +02:00
2011-01-04 00:53:37 +00:00
2011-05-24 20:58:49 +02:00
2011-05-24 20:58:49 +02:00
2012-07-24 14:13:56 +02:00
2012-07-24 14:13:56 +02:00
2012-07-24 14:13:56 +02:00
2011-06-29 11:36:10 +02:00
2012-07-24 14:13:56 +02:00
2012-05-12 14:28:18 +02:00
2012-09-12 14:49:13 +02:00
2012-09-12 14:49:13 +02:00