* [PATCH 1/2] [TRIVIAL] usb: gadget: Remove duplicated function declaration in pxa27x_udc
[not found] <cover.1487812323.git.petr.cvek@tul.cz>
@ 2017-02-23 1:35 ` Petr Cvek
2017-02-23 7:30 ` Robert Jarzmik
2017-02-23 1:35 ` [PATCH 2/2] usb: gadget: Add test if argument pointer has a valid value " Petr Cvek
1 sibling, 1 reply; 4+ messages in thread
From: Petr Cvek @ 2017-02-23 1:35 UTC (permalink / raw)
To: linux-arm-kernel
Remove duplicated function declaration for udc_enable() and udc_disable().
Signed-off-by: Petr Cvek <petr.cvek@tul.cz>
---
drivers/usb/gadget/udc/pxa27x_udc.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/usb/gadget/udc/pxa27x_udc.c b/drivers/usb/gadget/udc/pxa27x_udc.c
index 7fa60f5b7ae4..6fa675bf2c6f 100644
--- a/drivers/usb/gadget/udc/pxa27x_udc.c
+++ b/drivers/usb/gadget/udc/pxa27x_udc.c
@@ -1608,9 +1608,6 @@ static int pxa_udc_pullup(struct usb_gadget *_gadget, int is_active)
return 0;
}
-static void udc_enable(struct pxa_udc *udc);
-static void udc_disable(struct pxa_udc *udc);
-
/**
* pxa_udc_vbus_session - Called by external transceiver to enable/disable udc
* @_gadget: usb gadget
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] usb: gadget: Add test if argument pointer has a valid value in pxa27x_udc
[not found] <cover.1487812323.git.petr.cvek@tul.cz>
2017-02-23 1:35 ` [PATCH 1/2] [TRIVIAL] usb: gadget: Remove duplicated function declaration in pxa27x_udc Petr Cvek
@ 2017-02-23 1:35 ` Petr Cvek
2017-02-23 7:28 ` Robert Jarzmik
1 sibling, 1 reply; 4+ messages in thread
From: Petr Cvek @ 2017-02-23 1:35 UTC (permalink / raw)
To: linux-arm-kernel
Move call usb_put_phy(udc->transceiver) inside a valid pointer test.
Reported-by: robert.jarzmik at free.fr
Signed-off-by: Petr Cvek <petr.cvek@tul.cz>
---
drivers/usb/gadget/udc/pxa27x_udc.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/gadget/udc/pxa27x_udc.c b/drivers/usb/gadget/udc/pxa27x_udc.c
index 6fa675bf2c6f..9d2e1a8aa69d 100644
--- a/drivers/usb/gadget/udc/pxa27x_udc.c
+++ b/drivers/usb/gadget/udc/pxa27x_udc.c
@@ -2531,9 +2531,10 @@ static int pxa_udc_remove(struct platform_device *_dev)
usb_del_gadget_udc(&udc->gadget);
pxa_cleanup_debugfs(udc);
- if (!IS_ERR_OR_NULL(udc->transceiver))
+ if (!IS_ERR_OR_NULL(udc->transceiver)) {
usb_unregister_notifier(udc->transceiver, &pxa27x_udc_phy);
- usb_put_phy(udc->transceiver);
+ usb_put_phy(udc->transceiver);
+ }
udc->transceiver = NULL;
the_controller = NULL;
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] usb: gadget: Add test if argument pointer has a valid value in pxa27x_udc
2017-02-23 1:35 ` [PATCH 2/2] usb: gadget: Add test if argument pointer has a valid value " Petr Cvek
@ 2017-02-23 7:28 ` Robert Jarzmik
0 siblings, 0 replies; 4+ messages in thread
From: Robert Jarzmik @ 2017-02-23 7:28 UTC (permalink / raw)
To: linux-arm-kernel
Petr Cvek <petr.cvek@tul.cz> writes:
> Move call usb_put_phy(udc->transceiver) inside a valid pointer test.
>
> Reported-by: robert.jarzmik at free.fr
I'd rather have my normal signature here :
Reported-by: Robert Jarzmik <robert.jarzmik@free.fr>
> Signed-off-by: Petr Cvek <petr.cvek@tul.cz>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Cheers.
--
Robert
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] [TRIVIAL] usb: gadget: Remove duplicated function declaration in pxa27x_udc
2017-02-23 1:35 ` [PATCH 1/2] [TRIVIAL] usb: gadget: Remove duplicated function declaration in pxa27x_udc Petr Cvek
@ 2017-02-23 7:30 ` Robert Jarzmik
0 siblings, 0 replies; 4+ messages in thread
From: Robert Jarzmik @ 2017-02-23 7:30 UTC (permalink / raw)
To: linux-arm-kernel
Petr Cvek <petr.cvek@tul.cz> writes:
> Remove duplicated function declaration for udc_enable() and udc_disable().
The patch title looks a bit tool long to me, and that also applied to your
second one.
Moreover the correct prefix for this driver (for the title) is :
usb: gadget: pxa27x: MySuperSyntheticTitle
Cheers.
--
Robert
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-02-23 7:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <cover.1487812323.git.petr.cvek@tul.cz>
2017-02-23 1:35 ` [PATCH 1/2] [TRIVIAL] usb: gadget: Remove duplicated function declaration in pxa27x_udc Petr Cvek
2017-02-23 7:30 ` Robert Jarzmik
2017-02-23 1:35 ` [PATCH 2/2] usb: gadget: Add test if argument pointer has a valid value " Petr Cvek
2017-02-23 7:28 ` Robert Jarzmik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox