All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer()
@ 2017-12-06 17:51 ` SF Markus Elfring
  0 siblings, 0 replies; 75+ messages in thread
From: SF Markus Elfring @ 2017-12-06 17:51 UTC (permalink / raw)
  To: Geert Uytterhoeven, linux-usb
  Cc: Alan Stern, Daniel Drake, Dmitry Fleytman, Eugene Korenevsky,
	Greg Kroah-Hartman, Günter Röck, Johan Hovold,
	Mathias Nyman, Peter Chen, LKML, kernel-janitors

> The system will come to a grinding halt anyway if it can't allocate 24 or 40 bytes.

Maybe.


> Which is BTW more or less the amount of memory saved by killing
> the useless (error) message.

Would you dare to resend this update suggestion after such a view?

Regards,
Markus

^ permalink raw reply	[flat|nested] 75+ messages in thread
* Re: USB: hub: Checking communication difficulties
@ 2017-12-08 12:00 ` SF Markus Elfring
  0 siblings, 0 replies; 75+ messages in thread
From: SF Markus Elfring @ 2017-12-08 12:00 UTC (permalink / raw)
  To: Dan Carpenter, linux-usb
  Cc: Geert Uytterhoeven, Alan Stern, Daniel Drake, Dmitry Fleytman,
	Eugene Korenevsky, Greg Kroah-Hartman, Günter Röck,
	Johan Hovold, Mathias Nyman, Peter Chen, LKML, kernel-janitors

> Greg maintains USB and he's has blocked Markus,

How do you think about to reconsider this blockage?


> because he never listens to feedback

I am listening …


> but instead just repsonds that he has a different opinion.

I choose such a reaction in some cases. My responses can vary.

It seems that I show change possibilities from which contributors
can get grumpy (over time).

Regards,
Markus
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 75+ messages in thread
* [PATCH] USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer(
@ 2017-12-06 16:13 ` SF Markus Elfring
  0 siblings, 0 replies; 75+ messages in thread
From: SF Markus Elfring @ 2017-12-06 16:13 UTC (permalink / raw)
  To: linux-usb, Alan Stern, Daniel Drake, Dmitry Fleytman,
	Eugene Korenevsky, Geert Uytterhoeven, Greg Kroah-Hartman,
	Günter Röck, Johan Hovold, Mathias Nyman, Peter Chen
  Cc: LKML, kernel-janitors

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Wed, 6 Dec 2017 17:00:18 +0100

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/usb/core/hub.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 7ccdd3d4db84..9fbb908e9552 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -829,7 +829,6 @@ int usb_hub_clear_tt_buffer(struct urb *urb)
 	 */
 	clear = kmalloc(sizeof *clear, GFP_ATOMIC);
 	if (clear = NULL) {
-		dev_err(&udev->dev, "can't save CLEAR_TT_BUFFER state\n");
 		/* FIXME recover somehow ... RESET_TT? */
 		return -ENOMEM;
 	}
-- 
2.15.1


^ permalink raw reply related	[flat|nested] 75+ messages in thread

end of thread, other threads:[~2017-12-08 17:42 UTC | newest]

Thread overview: 75+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-06 17:51 USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer() SF Markus Elfring
2017-12-06 17:51 ` SF Markus Elfring
2017-12-06 17:51 ` SF Markus Elfring
2017-12-06 20:20 ` Geert Uytterhoeven
2017-12-06 20:20   ` Geert Uytterhoeven
2017-12-06 20:20   ` Geert Uytterhoeven
2017-12-06 21:33 ` SF Markus Elfring
2017-12-06 21:33   ` SF Markus Elfring
2017-12-06 21:33   ` SF Markus Elfring
2017-12-06 22:02 ` Alan Stern
2017-12-06 22:02   ` Alan Stern
2017-12-06 22:02   ` Alan Stern
2017-12-07  7:40 ` Geert Uytterhoeven
2017-12-07  7:40   ` Geert Uytterhoeven
2017-12-07  7:40   ` Geert Uytterhoeven
2017-12-07  8:35 ` Dan Carpenter
2017-12-07  8:35   ` Dan Carpenter
2017-12-07  8:35   ` Dan Carpenter
2017-12-07  8:45 ` Geert Uytterhoeven
2017-12-07  8:45   ` Geert Uytterhoeven
2017-12-07  8:45   ` Geert Uytterhoeven
2017-12-07  8:56 ` Greg Kroah-Hartman
2017-12-07  8:56   ` Greg Kroah-Hartman
2017-12-07  8:56   ` Greg Kroah-Hartman
2017-12-07  9:17 ` Oliver Neukum
2017-12-07  9:17   ` Oliver Neukum
2017-12-07  9:17   ` Oliver Neukum
2017-12-07  9:30 ` Dan Carpenter
2017-12-07  9:30   ` Dan Carpenter
2017-12-07  9:30   ` Dan Carpenter
2017-12-07 13:38 ` SF Markus Elfring
2017-12-07 13:38   ` SF Markus Elfring
2017-12-07 13:38   ` SF Markus Elfring
2017-12-07 15:12 ` Alan Stern
2017-12-07 15:12   ` Alan Stern
2017-12-07 15:12   ` Alan Stern
2017-12-07 16:20 ` Joe Perches
2017-12-07 16:20   ` Joe Perches
2017-12-07 16:20   ` Joe Perches
2017-12-07 20:51 ` Dan Carpenter
2017-12-07 20:51   ` Dan Carpenter
2017-12-07 20:51   ` Dan Carpenter
2017-12-07 21:26 ` Alan Stern
2017-12-07 21:26   ` Alan Stern
2017-12-07 21:26   ` Alan Stern
2017-12-08  7:43 ` Geert Uytterhoeven
2017-12-08  7:43   ` Geert Uytterhoeven
2017-12-08  7:43   ` Geert Uytterhoeven
2017-12-08 11:11 ` Dan Carpenter
2017-12-08 11:11   ` Dan Carpenter
2017-12-08 11:11   ` Dan Carpenter
2017-12-08 17:42 ` Alan Stern
2017-12-08 17:42   ` Alan Stern
2017-12-08 17:42   ` Alan Stern
  -- strict thread matches above, loose matches on Subject: below --
2017-12-08 12:00 USB: hub: Checking communication difficulties SF Markus Elfring
2017-12-08 12:00 ` SF Markus Elfring
2017-12-08 12:00 ` USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer() SF Markus Elfring
2017-12-06 16:13 [PATCH] USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer( SF Markus Elfring
2017-12-06 16:13 ` [PATCH] USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer() SF Markus Elfring
2017-12-06 16:13 ` SF Markus Elfring
2017-12-06 16:45 ` [PATCH] USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buf Alan Stern
2017-12-06 16:45   ` [PATCH] USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer() Alan Stern
2017-12-06 16:45   ` Alan Stern
2017-12-06 16:57 ` [PATCH] USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buf Greg Kroah-Hartman
2017-12-06 16:57   ` [PATCH] USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer() Greg Kroah-Hartman
2017-12-06 16:57   ` Greg Kroah-Hartman
2017-12-06 17:27 ` [PATCH] USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buf Geert Uytterhoeven
2017-12-06 17:27   ` [PATCH] USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer() Geert Uytterhoeven
2017-12-06 17:27   ` Geert Uytterhoeven
2017-12-06 20:05 ` [PATCH] USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buf Joe Perches
2017-12-06 20:05   ` [PATCH] USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer() Joe Perches
2017-12-06 20:05   ` Joe Perches
2017-12-06 21:18 ` [PATCH] USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buf Alan Stern
2017-12-06 21:18   ` [PATCH] USB: hub: Delete an error message for a failed memory allocation in usb_hub_clear_tt_buffer() Alan Stern
2017-12-06 21:18   ` Alan Stern

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.