mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
USB: cdnsp: drop irq-flags initialisations
There's no need to initialise irq-flags variables before saving the interrupt state. Cc: Pawel Laszczak <pawell@cadence.com> Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20210519093303.10789-2-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
77b57218ac
commit
18538a5023
1 changed files with 2 additions and 2 deletions
|
@ -1151,7 +1151,7 @@ static int cdnsp_gadget_ep_set_halt(struct usb_ep *ep, int value)
|
|||
struct cdnsp_ep *pep = to_cdnsp_ep(ep);
|
||||
struct cdnsp_device *pdev = pep->pdev;
|
||||
struct cdnsp_request *preq;
|
||||
unsigned long flags = 0;
|
||||
unsigned long flags;
|
||||
int ret;
|
||||
|
||||
spin_lock_irqsave(&pdev->lock, flags);
|
||||
|
@ -1176,7 +1176,7 @@ static int cdnsp_gadget_ep_set_wedge(struct usb_ep *ep)
|
|||
{
|
||||
struct cdnsp_ep *pep = to_cdnsp_ep(ep);
|
||||
struct cdnsp_device *pdev = pep->pdev;
|
||||
unsigned long flags = 0;
|
||||
unsigned long flags;
|
||||
int ret;
|
||||
|
||||
spin_lock_irqsave(&pdev->lock, flags);
|
||||
|
|
Loading…
Reference in a new issue