]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
Staging: brcm80211: util: remove unneeded use of uintptr
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 12 Oct 2010 20:20:38 +0000 (13:20 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 12 Oct 2010 20:20:38 +0000 (13:20 -0700)
uintptr shouldn't be used when you are just casting to a pointer anyway,
so remove it from these usages.

Cc: Brett Rudley <brudley@broadcom.com>
Cc: Henry Ptasinski <henryp@broadcom.com>
Cc: Nohee Ko <noheek@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/util/aiutils.c

index 0724cc1d0730de30d76fd94f558f909adbcb5e61..d4e9187508af2dff538a94d5aa23f48dfe12658f 100644 (file)
@@ -134,7 +134,7 @@ void ai_scan(si_t *sih, void *regs, uint devid)
        case SPI_BUS:
        case SDIO_BUS:
 #endif                         /* BCMSDIO */
-               eromptr = (u32 *) (uintptr) erombase;
+               eromptr = (u32 *)erombase;
                break;
 
        default:
@@ -358,8 +358,8 @@ void *ai_setcoreidx(si_t *sih, uint coreidx)
        case SPI_BUS:
        case SDIO_BUS:
 #endif                         /* BCMSDIO */
-               sii->curmap = regs = (void *)((uintptr) addr);
-               sii->curwrap = (void *)((uintptr) wrap);
+               sii->curmap = regs = (void *)addr;
+               sii->curwrap = (void *)wrap;
                break;
 
        default: