OSDN Git Service

spi: davinci: Remove unneeded NULL checking for dspi and dspi->bitbang.master
authorAxel Lin <axel.lin@ingics.com>
Thu, 6 Feb 2014 02:52:21 +0000 (10:52 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 6 Feb 2014 12:52:58 +0000 (12:52 +0000)
commit91cfe7e73b484703baf353d3915823210a417d77
tree24d35edf7e4e97e3e6b5dc6257fff6e99d013892
parent38dbfb59d1175ef458d006556061adeaa8751b72
spi: davinci: Remove unneeded NULL checking for dspi and dspi->bitbang.master

spi_master_get_devdata() never returns NULL when spi_alloc_master() success,
so remove NULL test for dspi.
We have ensured master is not NULL before assigning it to dspi->bitbang.master.
So also remove NULL test for dspi->bitbang.master.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-davinci.c