summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-max8997.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2015-10-14 23:12:21 +0300
committerMark Brown <broonie@kernel.org>2015-10-19 20:32:01 +0100
commitde6feda884b0079f5f232a41d94da23d198ff230 (patch)
tree9125959d8251e458816f4ebbcc22448895b1f794 /drivers/rtc/rtc-max8997.c
parent863cb2f72e636c8721482fd88e256facb59c5737 (diff)
downloadblackbird-op-linux-de6feda884b0079f5f232a41d94da23d198ff230.tar.gz
blackbird-op-linux-de6feda884b0079f5f232a41d94da23d198ff230.zip
spi: dw: eliminate speed variable in ->transfer_one()
There is no point to have a separate variable for speed in ->transfer_one(). While here, remove !chip->clk_div from a condition since it is assigned simultaneously with chip->speed_hz. We can do this safely because a) transfer speed can't be higher than max_freq and therefore chip->clk_div can be 0 only when chip->speed_hz is 0, and b) transfer speed can't be 0, otherwise we will get division by zero exception. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/rtc/rtc-max8997.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud