Re: [PATCH] spi: atmel: No need to call spi_master_put() if spi_alloc_master() failed

2020-07-08 Thread Mark Brown
On Tue, 7 Jul 2020 16:50:42 +0800, Peng Fan wrote: > There is no need to call spi_master_put() if spi_alloc_master() > failed, it should return -ENOMEM directly. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] spi: atmel: No need to call

[PATCH] spi: atmel: No need to call spi_master_put() if spi_alloc_master() failed

2020-07-07 Thread Peng Fan
There is no need to call spi_master_put() if spi_alloc_master() failed, it should return -ENOMEM directly. Signed-off-by: Peng Fan --- drivers/spi/spi-atmel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index