[PATCH] staging: wilc1000: modify type casting warning
Sudip Mukherjee
sudipm.mukherjee at gmail.com
Tue Jun 16 07:09:50 UTC 2015
On Tue, Jun 16, 2015 at 03:46:04PM +0900, Dean Lee wrote:
> modify message "warning: cast from pointer to integer of different size".
> add type cast 'uintptr_t'.
> ---
[]
> @@ -620,7 +621,7 @@ static s32 Handle_SetChannel(void *drvHandler, tstrHostIFSetChan *pstrHostIFSetC
>
> PRINT_D(HOSTINF_DBG, "Setting channel\n");
> /*Sending Cfg*/
> - s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, (u32)pstrWFIDrv);
> + s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, (u32)(uintptr_t)pstrWFIDrv);
two typecasts??? there has to be a better solution than this.
regards
sudip
More information about the devel
mailing list