Renamed variable "Adapter" -> "ad" in bcm_char_release(). Signed-off-by: Matthias Beyer <mail@xxxxxxxxxxxxxxxx> --- drivers/staging/bcm/Bcmchar.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c index e7d733e..d7e1277 100644 --- a/drivers/staging/bcm/Bcmchar.c +++ b/drivers/staging/bcm/Bcmchar.c @@ -133,7 +133,7 @@ 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 *tarang, *tmp, *ptmp; - struct bcm_mini_adapter *Adapter = NULL; + struct bcm_mini_adapter *ad = NULL; struct sk_buff *pkt, *npkt; tarang = (struct bcm_tarang_data *)filp->private_data; @@ -141,11 +141,11 @@ static int bcm_char_release(struct inode *inode, struct file *filp) if (tarang == NULL) return 0; - Adapter = tarang->Adapter; + ad = tarang->Adapter; - down(&Adapter->RxAppControlQueuelock); + down(&ad->RxAppControlQueuelock); - tmp = Adapter->pTarangs; + tmp = ad->pTarangs; for (ptmp = NULL; tmp; ptmp = tmp, tmp = tmp->next) { if (tmp == tarang) break; @@ -153,11 +153,11 @@ static int bcm_char_release(struct inode *inode, struct file *filp) if (tmp) { if (!ptmp) - Adapter->pTarangs = tmp->next; + ad->pTarangs = tmp->next; else ptmp->next = tmp->next; } else { - up(&Adapter->RxAppControlQueuelock); + up(&ad->RxAppControlQueuelock); return 0; } @@ -168,10 +168,10 @@ static int bcm_char_release(struct inode *inode, struct file *filp) pkt = npkt; } - up(&Adapter->RxAppControlQueuelock); + up(&ad->RxAppControlQueuelock); /* Stop Queuing the control response Packets */ - atomic_dec(&Adapter->ApplicationRunning); + atomic_dec(&ad->ApplicationRunning); kfree(tarang); -- 2.0.3 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel