diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-09-22 23:48:08 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-09-25 19:09:44 +0300 |
commit | b0d6e097b922ac7f538623c52794d9d63d6ee378 (patch) | |
tree | 09fbbd7b76de5daf5ec73b85db9cd514ba714cfb /drivers/spi/spi-lantiq-ssc.c | |
parent | 04063a011f2f35c37e1146c736e6d4ad402a8557 (diff) | |
download | linux-b0d6e097b922ac7f538623c52794d9d63d6ee378.tar.xz |
spi: sprd-adi: silence an uninitialized variable warning
If of_get_property() fails then "size" is uninitialized and it leads to
a static checker warning:
drivers/spi/spi-sprd-adi.c:288 sprd_adi_hw_init()
error: uninitialized symbol 'size'.
We can silence the warning by re-arranging the order of these checks.
It obviously doesn't affect runtime at all.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-lantiq-ssc.c')
0 files changed, 0 insertions, 0 deletions