Renamed variable "pTarang" -> "tarang" in bcm_char_release(). Signed-off-by: Matthias Beyer <mail@xxxxxxxxxxxxxxxx> --- drivers/staging/bcm/Bcmchar.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c index aba63f9..e7d733e 100644 --- a/drivers/staging/bcm/Bcmchar.c +++ b/drivers/staging/bcm/Bcmchar.c @@ -132,22 +132,22 @@ static int bcm_char_open(struct inode *inode, struct file *filp) static int bcm_char_release(struct inode *inode, struct file *filp) { - struct bcm_tarang_data *pTarang, *tmp, *ptmp; + struct bcm_tarang_data *tarang, *tmp, *ptmp; struct bcm_mini_adapter *Adapter = NULL; struct sk_buff *pkt, *npkt; - pTarang = (struct bcm_tarang_data *)filp->private_data; + tarang = (struct bcm_tarang_data *)filp->private_data; - if (pTarang == NULL) + if (tarang == NULL) return 0; - Adapter = pTarang->Adapter; + Adapter = tarang->Adapter; down(&Adapter->RxAppControlQueuelock); tmp = Adapter->pTarangs; for (ptmp = NULL; tmp; ptmp = tmp, tmp = tmp->next) { - if (tmp == pTarang) + if (tmp == tarang) break; } @@ -161,7 +161,7 @@ static int bcm_char_release(struct inode *inode, struct file *filp) return 0; } - pkt = pTarang->RxAppControlHead; + pkt = tarang->RxAppControlHead; while (pkt) { npkt = pkt->next; kfree_skb(pkt); @@ -173,7 +173,7 @@ static int bcm_char_release(struct inode *inode, struct file *filp) /* Stop Queuing the control response Packets */ atomic_dec(&Adapter->ApplicationRunning); - kfree(pTarang); + kfree(tarang); /* remove this filp from the asynchronously notified filp's */ filp->private_data = NULL; -- 2.0.3 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel