[RTEMS Project] #2239: i2c/spi-sd-card.c:920: bad expression ?
RTEMS trac
trac at rtems.org
Fri Jan 23 09:21:32 UTC 2015
#2239: i2c/spi-sd-card.c:920: bad expression ?
---------------------+------------------
Reporter: dcb | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 4.11
Component: General | Version: 4.10
Severity: normal | Keywords:
---------------------+------------------
[rtems/c/src/libchip/i2c/spi-sd-card.c:920]: (style) Expression '(X &
0x600000) == 0x40000000' is always false.
high_capacity = (reg & 0x600000) == SD_CARD_FLAG_HCS;
Something like
high_capacity = (reg & SD_CARD_FLAG_HCS);
might be better.
--
Ticket URL: <http://devel.rtems.org/ticket/2239>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list