}
while (pHandle->pstrMessageList) {
- struct message *pstrMessge = pHandle->pstrMessageList->pstrNext;
+ struct message *pstrMessge = pHandle->pstrMessageList->next;
kfree(pHandle->pstrMessageList);
pHandle->pstrMessageList = pstrMessge;
return -ENOMEM;
pstrMessage->len = u32SendBufferSize;
- pstrMessage->pstrNext = NULL;
+ pstrMessage->next = NULL;
pstrMessage->buf = kmemdup(pvSendBuffer, u32SendBufferSize,
GFP_ATOMIC);
if (!pstrMessage->buf) {
} else {
struct message *pstrTailMsg = pHandle->pstrMessageList;
- while (pstrTailMsg->pstrNext)
- pstrTailMsg = pstrTailMsg->pstrNext;
+ while (pstrTailMsg->next)
+ pstrTailMsg = pstrTailMsg->next;
- pstrTailMsg->pstrNext = pstrMessage;
+ pstrTailMsg->next = pstrMessage;
}
spin_unlock_irqrestore(&pHandle->strCriticalSection, flags);
memcpy(pvRecvBuffer, pstrMessage->buf, pstrMessage->len);
*pu32ReceivedLength = pstrMessage->len;
- pHandle->pstrMessageList = pstrMessage->pstrNext;
+ pHandle->pstrMessageList = pstrMessage->next;
kfree(pstrMessage->buf);
kfree(pstrMessage);