diff options
author | Felipe Balbi <balbi@ti.com> | 2012-09-12 16:27:56 +0530 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-09-12 15:01:52 +0200 |
commit | baf3d7b7210c705bf8ca7afb03cd7f0b61d27058 (patch) | |
tree | 066fb658ac9551785dffb5929e1ae19d4f77b57b /fs/nls/nls_cp1255.c | |
parent | d9ebd04d3476634c29ce0feffbc982e1cb25ed80 (diff) |
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>
Diffstat (limited to 'fs/nls/nls_cp1255.c')
0 files changed, 0 insertions, 0 deletions