• Sebastian Andrzej Siewior's avatar
    usb: gadget: fusb300_udc: fix compile warnings · 1425b80e
    Sebastian Andrzej Siewior authored
    - remove pointer u32 abuse in fusb300_fill_idma_prdtbl().
      It is assigned the dma_addr to a pointer and then back.
      Poor families may have to recycle variables but we don't
    
    - don't free req.buf in error case. We don't do it in the
      ok case so it is probably wrong to do it in error case.
    
    - return in error case. There is no reason to continue
      without data and performing ops on an invalid pointer.
    
    - The if (d) statement is bogus since an invalid DMA pointer
      is ~0 on some architecutres. And since we return for the
      invalid case we don't need it.
    Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
    Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
    1425b80e
fusb300_udc.c 40.1 KB