mirror of
https://github.com/gosticks/RIOT.git
synced 2025-10-16 12:05:37 +00:00
cpu/lpc2387: Add missing assert(buff != NULL)
This commit is contained in:
parent
5f63bd38a4
commit
ba31acae58
@ -380,6 +380,8 @@ static int send_cmd(unsigned int idx, unsigned long arg, unsigned int rt, unsign
|
|||||||
{
|
{
|
||||||
unsigned int s, mc;
|
unsigned int s, mc;
|
||||||
|
|
||||||
|
assert(buff != NULL);
|
||||||
|
|
||||||
if (idx & 0x80) { /* Send a CMD55 prior to the specified command if it is ACMD class */
|
if (idx & 0x80) { /* Send a CMD55 prior to the specified command if it is ACMD class */
|
||||||
if (!send_cmd(CMD55, (unsigned long)CardRCA << 16, 1, buff) /* When CMD55 is faild, */
|
if (!send_cmd(CMD55, (unsigned long)CardRCA << 16, 1, buff) /* When CMD55 is faild, */
|
||||||
|| !(buff[0] & 0x00000020)) {
|
|| !(buff[0] & 0x00000020)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user