diff --git a/drivers/staging/rt2860/common/mlme.c b/drivers/staging/rt2860/common/mlme.c index 75f810ca9ae2..4562cf538dc6 100644 --- a/drivers/staging/rt2860/common/mlme.c +++ b/drivers/staging/rt2860/common/mlme.c @@ -897,7 +897,7 @@ VOID MlmePeriodicExec( { if ((pAd->StaCfg.bRadio == TRUE) && (pAd->SameRxByteCount < 700)) { - DBGPRINT(RT_DEBUG_TRACE, ("---> SameRxByteCount = %d !!!!!!!!!!!!!!! \n", pAd->SameRxByteCount)); + DBGPRINT(RT_DEBUG_TRACE, ("---> SameRxByteCount = %lu !!!!!!!!!!!!!!! \n", pAd->SameRxByteCount)); pAd->SameRxByteCount = 700; AsicResetBBP(pAd); } diff --git a/drivers/staging/rt2860/common/rtmp_init.c b/drivers/staging/rt2860/common/rtmp_init.c index 19a21ff489a5..b9b735dc5712 100644 --- a/drivers/staging/rt2860/common/rtmp_init.c +++ b/drivers/staging/rt2860/common/rtmp_init.c @@ -2046,7 +2046,7 @@ VOID NICRestoreBBPValue( IN PRTMP_ADAPTER pAd) { UCHAR index; - UCHAR Value; + UCHAR Value = 0; ULONG Data; DBGPRINT(RT_DEBUG_TRACE, ("---> NICRestoreBBPValue !!!!!!!!!!!!!!!!!!!!!!! \n")); diff --git a/drivers/staging/rt2860/sta_ioctl.c b/drivers/staging/rt2860/sta_ioctl.c index 320d9b2046bf..11366e32b035 100644 --- a/drivers/staging/rt2860/sta_ioctl.c +++ b/drivers/staging/rt2860/sta_ioctl.c @@ -358,7 +358,7 @@ VOID RTMPAddKey( if (pAd->StaCfg.bRadio == FALSE) { RTMP_SET_PSFLAG(pAd, fRTMP_PS_CAN_GO_SLEEP); - return (NDIS_STATUS_SUCCESS); + return; } DBGPRINT(RT_DEBUG_TRACE,("RTMPWPAAddKeyProc1==>\n")); RTMPPCIeLinkCtrlValueRestore(pAd, RESTORE_HALT); @@ -2465,7 +2465,7 @@ void fnSetCipherKey( if (pAdapter->StaCfg.bRadio == FALSE) { RTMP_SET_PSFLAG(pAdapter, fRTMP_PS_CAN_GO_SLEEP); - return (NDIS_STATUS_SUCCESS); + return; } DBGPRINT(RT_DEBUG_TRACE,("RTMPWPAAddKeyProc1==>\n")); RTMPPCIeLinkCtrlValueRestore(pAdapter, RESTORE_HALT);