Revert "i2c: jz4780: prevent potential division by zero"
authorWolfram Sang <wsa@the-dreams.de>
Sat, 9 Apr 2016 06:32:37 +0000 (08:32 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 9 Apr 2016 06:32:37 +0000 (08:32 +0200)
commit4ececb7d173f17c60c00e704a0e4e51cdf788e04
tree2e045896e94632621f8107db1f6bd639754ae0f4
parent34cf2acdafaa31a13821e45de5ee896adcd307b1
Revert "i2c: jz4780: prevent potential division by zero"

This reverts commit 34cf2acdafaa31a13821e45de5ee896adcd307b1. 'ret' is
not set when bailing out. Also, there is a better place to check for 0.

Reported-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-jz4780.c