git.samba.org
/
sfrench
/
cifs-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77b5721
)
USB: cdnsp: drop irq-flags initialisations
author
Johan Hovold
<johan@kernel.org>
Wed, 19 May 2021 09:33:01 +0000
(11:33 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 21 May 2021 18:05:56 +0000
(20:05 +0200)
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>
drivers/usb/cdns3/cdnsp-gadget.c
patch
|
blob
|
history
diff --git
a/drivers/usb/cdns3/cdnsp-gadget.c
b/drivers/usb/cdns3/cdnsp-gadget.c
index 56707b6b0f57ca2c5ac6ebff23e62fe5459aeb56..4fddc78f732fa0a704013b48b3ce7ef29e15fbe6 100644
(file)
--- a/
drivers/usb/cdns3/cdnsp-gadget.c
+++ b/
drivers/usb/cdns3/cdnsp-gadget.c
@@
-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);