commit | c6a49702a61f74946342f3ba284e4e3899b46964 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Mon Dec 02 12:57:44 2013 +0800 |
committer | Sonic Zhang <sonic.zhang@analog.com> | Fri Dec 06 16:06:51 2013 +0800 |
tree | f035cb652dbbd992bf0dd97389980998e966228a | |
parent | 203e7ba3f2088151e2337c6432146a62f442cc97 [diff] |
spi: bfin_spi6xx: Remove unnecessary test for bus and pins[bus] For invalid bus number, current code returns NULL in the default case of switch-case statements. In additional, pins[bus] is always not NULL because it is the address of specific row of the two-dimensional array. Thus this patch removes these unnecessary test. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Scott Jiang <scott.jiang.linux@gmail.com> Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>