Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/marvell PR/50533: David Binderman: Fix incorrect logic



details:   https://anonhg.NetBSD.org/src/rev/97371f2aa9f0
branches:  trunk
changeset: 342245:97371f2aa9f0
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 13 18:35:26 2015 +0000

description:
PR/50533: David Binderman: Fix incorrect logic

diffstat:

 sys/dev/marvell/mvspi.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r f17851956f2f -r 97371f2aa9f0 sys/dev/marvell/mvspi.c
--- a/sys/dev/marvell/mvspi.c   Sun Dec 13 18:31:09 2015 +0000
+++ b/sys/dev/marvell/mvspi.c   Sun Dec 13 18:35:26 2015 +0000
@@ -265,7 +265,7 @@
 {
        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



Home | Main Index | Thread Index | Old Index