AT91: remove superfluous test in spi driver
Subsystems (2)
PATCH 1/1 AT91: remove superfluous test in spi driver
Let spi_cs_is_valid() alone make the decision
Signed-off-by Reinhard Meyer <[email protected]>
--- drivers/spi/atmel_spi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/spi/atmel_spi.c +1 -1
@@ -43,7 +43,7 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,u32 csrx;void *regs; -if (cs >3 || !spi_cs_is_valid (bus, cs)) +if (!spi_cs_is_valid (bus, cs))return NULL ;switch (bus) {
Signature · 1 line
1.5.6.5
Xu
PATCH 1/1 AT91: remove superfluous test in spi driver
Hi Reinhard Meyer,
Quoted 11 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Reinhard Meyer (-VC)
Sent: 2010?7?30? 17:54
To: u-boot
Subject: [U-Boot] [PATCH] AT91: remove superfluous test in spi driverLet
spi_cs_is_valid()alone make the decisionSigned-off-by Reinhard Meyer <[email protected]>
Acked-by Hong Xu <[email protected]>
BR,
Eric
Quoted 7 lines
drivers/spi/atmel_spi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)(quoted diff) +0
-0
b/drivers/spi/atmel_spi.cindex 317c0b4..1a650ee 100644drivers/spi/atmel_spi.c +0
-0
[...]