commit | 2d9a744685bc3a4bf1d097782550c450ff0c3b04 | [log] [tgz] |
---|---|---|
author | Peng Fan <fanpeng@loongson.cn> | Tue Jul 07 16:50:42 2020 +0800 |
committer | Mark Brown <broonie@kernel.org> | Tue Jul 07 14:26:31 2020 +0100 |
tree | 3c78fccbc08a9d3e044c94767237d0140dd5f2d1 | |
parent | d93529962d2aaee599157911894af2a791979e9f [diff] |
spi: atmel: No need to call spi_master_put() if spi_alloc_master() failed There is no need to call spi_master_put() if spi_alloc_master() failed, it should return -ENOMEM directly. Signed-off-by: Peng Fan <fanpeng@loongson.cn> Link: https://lore.kernel.org/r/1594111842-9468-1-git-send-email-fanpeng@loongson.cn Signed-off-by: Mark Brown <broonie@kernel.org>