Renamed variable "pTarang" -> "tarang" in bcm_char_read(). 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 2d9c26b..b96d6d8 100644 --- a/drivers/staging/bcm/Bcmchar.c +++ b/drivers/staging/bcm/Bcmchar.c @@ -185,8 +185,8 @@ static ssize_t bcm_char_read(struct file *filp, size_t size, loff_t *f_pos) { - struct bcm_tarang_data *pTarang = filp->private_data; - struct bcm_mini_adapter *ad = pTarang->Adapter; + struct bcm_tarang_data *tarang = filp->private_data; + struct bcm_mini_adapter *ad = tarang->Adapter; struct sk_buff *Packet = NULL; ssize_t PktLen = 0; int wait_ret_val = 0; @@ -194,7 +194,7 @@ static ssize_t bcm_char_read(struct file *filp, wait_ret_val = wait_event_interruptible( ad->process_read_wait_queue, - (pTarang->RxAppControlHead || + (tarang->RxAppControlHead || ad->device_removed)); if ((wait_ret_val == -ERESTARTSYS)) { @@ -214,11 +214,11 @@ static ssize_t bcm_char_read(struct file *filp, down(&ad->RxAppControlQueuelock); - if (pTarang->RxAppControlHead) { - Packet = pTarang->RxAppControlHead; - DEQUEUEPACKET(pTarang->RxAppControlHead, - pTarang->RxAppControlTail); - pTarang->AppCtrlQueueLen--; + if (tarang->RxAppControlHead) { + Packet = tarang->RxAppControlHead; + DEQUEUEPACKET(tarang->RxAppControlHead, + tarang->RxAppControlTail); + tarang->AppCtrlQueueLen--; } up(&ad->RxAppControlQueuelock); -- 2.0.3 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel