From: Felipe Balbi Date: Wed, 12 Sep 2012 10:57:56 +0000 (+0530) Subject: i2c: omap: simplify num_bytes handling X-Git-Tag: v3.7-rc1~50^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baf3d7b7210c705bf8ca7afb03cd7f0b61d27058;p=pandora-kernel.git 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 Reviewed-by : Santosh Shilimkar Signed-off-by: Shubhrajyoti D Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed