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

Commit 35e9403b authored by Marek Belisko's avatar Marek Belisko Committed by Greg Kroah-Hartman
Browse files

staging: ft1000: Use specific error codes instead self defined.

parent d2b07455
Loading
Loading
Loading
Loading
+10 −17
Original line number Diff line number Diff line
@@ -1025,7 +1025,7 @@ static int ft1000_copy_down_pkt (struct net_device *netdev, u8 *packet, u16 len)
    {

        DEBUG("ft1000_copy_down_pkt::Card Not Ready\n");
    	return STATUS_FAILURE;
	return -ENODEV;

    }

@@ -1037,7 +1037,7 @@ static int ft1000_copy_down_pkt (struct net_device *netdev, u8 *packet, u16 len)
    {
        DEBUG("Error:ft1000_copy_down_pkt:Message Size Overflow!\n");
    	DEBUG("size = %d\n", count);
    	return STATUS_FAILURE;
	return -EINVAL;
    }

    if ( count % 4)
@@ -1081,24 +1081,17 @@ static int ft1000_copy_down_pkt (struct net_device *netdev, u8 *packet, u16 len)


	ret = usb_submit_urb(pFt1000Dev->tx_urb, GFP_ATOMIC);
    if(ret)
    {
	if (ret) {
		DEBUG("ft1000 failed tx_urb %d\n", ret);

		return STATUS_FAILURE;

    }
    else
    {
        //DEBUG("ft1000 sucess tx_urb %d\n", ret);

		return ret;
	} else {
		pInfo->stats.tx_packets++;
		pInfo->stats.tx_bytes += (len+14);
	}

    //DEBUG("ft1000_copy_down_pkt() exit\n");

    return STATUS_SUCCESS;
	return 0;
}

//---------------------------------------------------------------------------