]> git.baikalelectronics.ru Git - kernel.git/commit
staging: most: i2c: prevent division by zero
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 8 May 2018 09:44:51 +0000 (11:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 May 2018 11:41:48 +0000 (13:41 +0200)
commit0cf6e089e895309ffb9c56cc2cacd2429af70754
tree7980ebe0dd39fa121e9bd195d459b29475be4233
parent7c63fd8b76de4d51481a6a6752b06b9f85ed9845
staging: most: i2c: prevent division by zero

This prevents division by zero scan_rate.

The zero scan_rate does not need any special action as it actually means
"never poll again".

Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/i2c/i2c.c