Skip to content
Snippets Groups Projects
Commit ba31acae authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

cpu/lpc2387: Add missing assert(buff != NULL)

parent 5f63bd38
Branches
No related tags found
No related merge requests found
...@@ -380,6 +380,8 @@ static int send_cmd(unsigned int idx, unsigned long arg, unsigned int rt, unsign ...@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment