[OPW,kernel,v3,2/2] Staging: vt6655: Removal of Unused Function
diff mbox

Message ID ff21799216fd2186ac4656c2861f4f1d39f86649.1381952066.git.rashika.kheria@gmail.com
State Accepted
Headers show

Commit Message

Rashika Oct. 16, 2013, 7:40 p.m. UTC
This patch removes unused function 'RFbShutDown' from file rf.c

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
---

This revision fixes the following issues of the previous revision-
Less relevant fixes in a single patch

 drivers/staging/vt6655/rf.c |   30 ------------------------------
 1 file changed, 30 deletions(-)

Comments

Josh Triplett Oct. 16, 2013, 11:53 p.m. UTC | #1
On Thu, Oct 17, 2013 at 01:10:36AM +0530, Rashika Kheria wrote:
> This patch removes unused function 'RFbShutDown' from file rf.c
> 
> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>

Reviewed-by: Josh Triplett <josh@joshtriplett.org>

>  drivers/staging/vt6655/rf.c |   30 ------------------------------
>  1 file changed, 30 deletions(-)
> 
> diff --git a/drivers/staging/vt6655/rf.c b/drivers/staging/vt6655/rf.c
> index b5fa7de..ce173cc 100644
> --- a/drivers/staging/vt6655/rf.c
> +++ b/drivers/staging/vt6655/rf.c
> @@ -776,36 +776,6 @@ bool RFbInit(
>  }
>  
>  /*
> - * Description: RF ShutDown function
> - *
> - * Parameters:
> - *  In:
> - *      byBBType
> - *      byRFType
> - *  Out:
> - *      none
> - *
> - * Return Value: true if succeeded; false if failed.
> - *
> - */
> -bool RFbShutDown(
> -	PSDevice  pDevice
> -)
> -{
> -	bool bResult = true;
> -
> -	switch (pDevice->byRFType) {
> -	case RF_AIROHA7230:
> -		bResult = IFRFbWriteEmbedded(pDevice->PortOffset, 0x1ABAEF00 + (BY_AL7230_REG_LEN << 3) + IFREGCTL_REGW);
> -		break;
> -	default:
> -		bResult = true;
> -		break;
> -	}
> -	return bResult;
> -}
> -
> -/*
>   * Description: Select channel
>   *
>   * Parameters:
> -- 
> 1.7.9.5
> 
> -- 
> You received this message because you are subscribed to the Google Groups "opw-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opw-kernel+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Greg Kroah-Hartman Oct. 17, 2013, 1:50 a.m. UTC | #2
On Thu, Oct 17, 2013 at 01:10:36AM +0530, Rashika Kheria wrote:
> This patch removes unused function 'RFbShutDown' from file rf.c
> 
> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
> ---
> 
> This revision fixes the following issues of the previous revision-
> Less relevant fixes in a single patch

Thanks for breaking it up like this, nice job.

Applied, thanks.

greg k-h

Patch
diff mbox

diff --git a/drivers/staging/vt6655/rf.c b/drivers/staging/vt6655/rf.c
index b5fa7de..ce173cc 100644
--- a/drivers/staging/vt6655/rf.c
+++ b/drivers/staging/vt6655/rf.c
@@ -776,36 +776,6 @@  bool RFbInit(
 }
 
 /*
- * Description: RF ShutDown function
- *
- * Parameters:
- *  In:
- *      byBBType
- *      byRFType
- *  Out:
- *      none
- *
- * Return Value: true if succeeded; false if failed.
- *
- */
-bool RFbShutDown(
-	PSDevice  pDevice
-)
-{
-	bool bResult = true;
-
-	switch (pDevice->byRFType) {
-	case RF_AIROHA7230:
-		bResult = IFRFbWriteEmbedded(pDevice->PortOffset, 0x1ABAEF00 + (BY_AL7230_REG_LEN << 3) + IFREGCTL_REGW);
-		break;
-	default:
-		bResult = true;
-		break;
-	}
-	return bResult;
-}
-
-/*
  * Description: Select channel
  *
  * Parameters: