i2c: omap: sanitize exit path
authorFelipe Balbi <balbi@ti.com>
Wed, 12 Sep 2012 10:58:16 +0000 (16:28 +0530)
committerWolfram Sang <w.sang@pengutronix.de>
Wed, 12 Sep 2012 13:04:18 +0000 (15:04 +0200)
commit0bdfe0cb803dce699ff337c35d8e97ac355fa417
treee8bb0809732d48f85c7eb44d15fed0ff36cf8f30
parent6d8451d55a2a9467bc9647aafe8b6faee0251687
i2c: omap: sanitize exit path

move the goto out label one line down, so that
it can be used when stat is read as zero. All
other exits, can be done with a break statement.

While at that, also break out as soon as we
complete draining IRQ, since at that time
we know we transferred everything there was
to be transferred.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-omap.c