Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7d3976e authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Greg Kroah-Hartman
Browse files

Staging: bcm: Bcmchar: Fix style issues on bcm_char_release()

parent 1e123323
Loading
Loading
Loading
Loading
+31 −37
Original line number Diff line number Diff line
@@ -51,9 +51,9 @@ static int bcm_char_release(struct inode *inode, struct file *filp)

	pTarang = (PPER_TARANG_DATA)filp->private_data;

    if(pTarang == NULL)
	{
	BCM_DEBUG_PRINT(Adapter,DBG_TYPE_PRINTK, 0, 0, "ptarang is null\n");
	if (pTarang == NULL) {
		BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0,
				"ptarang is null\n");
		return 0;
	}

@@ -62,29 +62,23 @@ static int bcm_char_release(struct inode *inode, struct file *filp)
	down(&Adapter->RxAppControlQueuelock);

	tmp = Adapter->pTarangs;
    for ( ptmp = NULL; tmp; ptmp = tmp, tmp = tmp->next )
	{
	for (ptmp = NULL; tmp; ptmp = tmp, tmp = tmp->next) {
		if (tmp == pTarang)
			break;
	}

    if ( tmp )
	{
	if (tmp) {
		if (!ptmp)
			Adapter->pTarangs = tmp->next;
		else
			ptmp->next = tmp->next;
	}

    else
	{
	} else {
		up(&Adapter->RxAppControlQueuelock);
		return 0;
	}

	pkt = pTarang->RxAppControlHead;
    while ( pkt )
	{
	while (pkt) {
		npkt = pkt->next;
		kfree_skb(pkt);
		pkt = npkt;