diff options
| author | Christophe JAILLET <[email protected]> | 2023-09-17 14:36:26 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-09-25 14:27:48 +0000 |
| commit | 8a771075e50bef5e2a063a9f954b36a33fb7359f (patch) | |
| tree | 536c15c6c8c7eaecdab788419207e5db8fc8dbae /drivers/pci/controller/pci-host-generic.c | |
| parent | spi: dt-bindings: st,stm32-spi: Move "st,spi-midi-ns" to spi-peripheral-props... (diff) | |
| download | kernel-8a771075e50bef5e2a063a9f954b36a33fb7359f.tar.gz kernel-8a771075e50bef5e2a063a9f954b36a33fb7359f.zip | |
spi: at91-usart: Remove some dead code
dma_request_chan() does not return NULL. It returns a valid pointer or an
error pointer.
So, some dead code can be removed.
The IS_ERR_OR_NULL() in the error handling path are still needed, because
the error handling path is common to the whole function and the
ctlr->dma_xx are NULL when at91_usart_spi_configure_dma() is called.
Signed-off-by: Christophe JAILLET <[email protected]>
Link: https://lore.kernel.org/r/84eb08daf85d203b34af9d8d08abf86804211413.1694961365.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-generic.c')
0 files changed, 0 insertions, 0 deletions
