From: Axel Lin Date: Sun, 2 Mar 2014 14:48:41 +0000 (+0800) Subject: spi: xcomm: Remove duplicate code to set default bits_per_word and max speed X-Git-Tag: v3.15-rc1~147^2~1^8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af348519e4a41eac8eae82cf3dcaeb6c1b008113;p=pandora-kernel.git spi: xcomm: Remove duplicate code to set default bits_per_word and max speed In the implementation of __spi_validate(), spi core will set transfer bits_per_word and max speed as spi device default if it is not set for this transfer. So we can remove the same logic in spi_xcomm_setup_transfer(). Also remove a redundant code to initialize is_first variable. Signed-off-by: Axel Lin Acked-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- Reading git-diff-tree failed