Skip to content

Commit

Permalink
Staging: vt6655: remove ULONG_PTR typedef
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Clément <caratorn@gmail.com>
  • Loading branch information
Charles Clément authored and Greg Kroah-Hartman committed Jun 22, 2010
1 parent e54d9eb commit dec572c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/vt6655/bssdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ BSSbInsertToBSSList (
if (pRSNWPA != NULL) {
unsigned int uLen = pRSNWPA->len + 2;

if (uLen <= (uIELength - (unsigned int)(ULONG_PTR)((unsigned char *)pRSNWPA - pbyIEs))) {
if (uLen <= (uIELength - (unsigned int)((unsigned char *)pRSNWPA - pbyIEs))) {
pBSSList->wWPALen = uLen;
memcpy(pBSSList->byWPAIE, pRSNWPA, uLen);
WPA_ParseRSN(pBSSList, pRSNWPA);
Expand All @@ -482,7 +482,7 @@ BSSbInsertToBSSList (

if (pRSN != NULL) {
unsigned int uLen = pRSN->len + 2;
if (uLen <= (uIELength - (unsigned int)(ULONG_PTR)((unsigned char *)pRSN - pbyIEs))) {
if (uLen <= (uIELength - (unsigned int)((unsigned char *)pRSN - pbyIEs))) {
pBSSList->wRSNLen = uLen;
memcpy(pBSSList->byRSNIE, pRSN, uLen);
WPA2vParseRSN(pBSSList, pRSN);
Expand Down Expand Up @@ -671,7 +671,7 @@ BSSbUpdateToBSSList (

if (pRSNWPA != NULL) {
unsigned int uLen = pRSNWPA->len + 2;
if (uLen <= (uIELength - (unsigned int)(ULONG_PTR)((unsigned char *)pRSNWPA - pbyIEs))) {
if (uLen <= (uIELength - (unsigned int)((unsigned char *)pRSNWPA - pbyIEs))) {
pBSSList->wWPALen = uLen;
memcpy(pBSSList->byWPAIE, pRSNWPA, uLen);
WPA_ParseRSN(pBSSList, pRSNWPA);
Expand All @@ -682,7 +682,7 @@ BSSbUpdateToBSSList (

if (pRSN != NULL) {
unsigned int uLen = pRSN->len + 2;
if (uLen <= (uIELength - (unsigned int)(ULONG_PTR)((unsigned char *)pRSN - pbyIEs))) {
if (uLen <= (uIELength - (unsigned int)((unsigned char *)pRSN - pbyIEs))) {
pBSSList->wRSNLen = uLen;
memcpy(pBSSList->byRSNIE, pRSN, uLen);
WPA2vParseRSN(pBSSList, pRSN);
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/vt6655/ttype.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ typedef UQuadWord QWORD; // 64-bit

/****** Common pointer types ***********************************************/

typedef unsigned long ULONG_PTR; // 32-bit
typedef unsigned long DWORD_PTR; // 32-bit

// boolean pointer
Expand Down

0 comments on commit dec572c

Please sign in to comment.