Commit 1084715
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>
(cherry picked from commit 2d9a744)
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>1 parent 7969212 commit 1084715
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1525 | 1525 | | |
1526 | 1526 | | |
1527 | 1527 | | |
1528 | | - | |
1529 | 1528 | | |
1530 | 1529 | | |
1531 | | - | |
| 1530 | + | |
1532 | 1531 | | |
1533 | 1532 | | |
1534 | 1533 | | |
| |||
0 commit comments