Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/stand/boot2440 PR/50526: David Binderman: Fi...



details:   https://anonhg.NetBSD.org/src/rev/31d4871bc707
branches:  trunk
changeset: 342252:31d4871bc707
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 13 19:18:32 2015 +0000

description:
PR/50526: David Binderman: Fix incorrect test

diffstat:

 sys/arch/evbarm/stand/boot2440/s3csdi.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r e74bb7adfa74 -r 31d4871bc707 sys/arch/evbarm/stand/boot2440/s3csdi.c
--- a/sys/arch/evbarm/stand/boot2440/s3csdi.c   Sun Dec 13 19:06:43 2015 +0000
+++ b/sys/arch/evbarm/stand/boot2440/s3csdi.c   Sun Dec 13 19:18:32 2015 +0000
@@ -90,7 +90,7 @@
 
        /* Check if a card is present */
        data = *(volatile uint32_t*)(S3C2440_GPIO_BASE+GPIO_PGDAT);
-       if ( (data & (1<<8)) == 1) {
+       if ( (data & (1<<8)) == (1<<8)) {
                printf("No card detected\n");
                /* Pin 8 is low when no card is inserted */
                return 0;



Home | Main Index | Thread Index | Old Index