]> git.baikalelectronics.ru Git - kernel.git/commit
spi: atmel: No need to call spi_master_put() if spi_alloc_master() failed
authorPeng Fan <fanpeng@loongson.cn>
Tue, 7 Jul 2020 08:50:42 +0000 (16:50 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 7 Jul 2020 13:26:31 +0000 (14:26 +0100)
commitfe0be5047d88c2f9bf61137a9ff0e3c462567e87
tree3c78fccbc08a9d3e044c94767237d0140dd5f2d1
parentea58d707f9e445d371c73fe89e840ace0b20facb
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>
drivers/spi/spi-atmel.c