Module Name:    src
Committed By:   christos
Date:           Sun Dec 13 18:35:26 UTC 2015

Modified Files:
        src/sys/dev/marvell: mvspi.c

Log Message:
PR/50533: David Binderman: Fix incorrect logic


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/marvell/mvspi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/marvell/mvspi.c
diff -u src/sys/dev/marvell/mvspi.c:1.2 src/sys/dev/marvell/mvspi.c:1.3
--- src/sys/dev/marvell/mvspi.c:1.2	Mon May  6 19:09:34 2013
+++ src/sys/dev/marvell/mvspi.c	Sun Dec 13 13:35:26 2015
@@ -265,7 +265,7 @@ mvspi_assert(struct mvspi_softc *sc)
 {
 	int ctl;
 	
-	if (sc->sc_transfer->st_slave < 0 && sc->sc_transfer->st_slave > 7) {
+	if (sc->sc_transfer->st_slave < 0 || sc->sc_transfer->st_slave > 7) {
 		printf("%s ERROR: Slave number %d not valid!\n",  __func__, sc->sc_transfer->st_slave);
 		return;
 	} else

Reply via email to