In a number of places in emxx_udc.c, there are variables which are
assigned to without that value ever being used. Remove these pointless
assignments.
Reported-by: kernel test robot <lkp@intel.com>
Fixes: 33aa8d45a4fe ("staging: emxx_udc: Add Emma Mobile USB Gadget driver")
Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Link: https://lore.kernel.org/r/20200902154628.283453-1-alex.dewar90@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        u32             dmacnt;
        u32             burst = 1;
        u32             data;
-       int             result = -EINVAL;
+       int             result;
        struct fc_regs __iomem *preg = udc->p_regs;
 
        if (req->dma_flag)
 
                        _nbu2ss_bitset(&preg->EP_REGS[num].EP_CONTROL, data);
                } else {
-                       /* Clear STALL */
-                       ep->stalled = false;
                        if (ep_adrs & USB_DIR_IN) {
                                _nbu2ss_bitclr(&preg->EP_REGS[num].EP_CONTROL
                                                , EPN_ISTL);
                                                , data);
                        }
 
+                       /* Clear STALL */
                        ep->stalled = false;
                        if (ep->halted) {
                                ep->halted = false;
  */
 static int nbu2ss_drv_probe(struct platform_device *pdev)
 {
-       int     status = -ENODEV;
-       struct nbu2ss_udc       *udc;
+       int status;
+       struct nbu2ss_udc *udc;
        int irq;
        void __iomem *mmio_base;