From: Andy Shevchenko Date: Tue, 24 Feb 2015 11:32:12 +0000 (+0200) Subject: spi: dw: refactor code that handles clk_div X-Git-Tag: omap-for-v4.1/fixes-rc1~176^2~4^4~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=341c7dc7c074e80d7344e0d75e2b8918ffc982fb;p=pandora-kernel.git spi: dw: refactor code that handles clk_div This patch does the following changes: a) the calculation of clk_div is simplified to oneliner; b) chip->clk_div is updated if clk_div is not zero, therefore the condition is simplified by using chip->clk_div in both cases; c) while here, the redundant parentheses are removed. Signed-off-by: Andy Shevchenko Signed-off-by: Mark Brown --- Reading git-diff-tree failed