spi: Always check complete callback before calling it
authorAxel Lin <axel.lin@ingics.com>
Wed, 2 Apr 2014 14:21:04 +0000 (22:21 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 3 Apr 2014 10:13:38 +0000 (11:13 +0100)
Since commit 1e25cd4729bd "spi: Do not require a completion", this checking is
required to prevent NULL pointer dereference.

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

No differences found