linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next 0/5] usb: Remove many unnecessary NULL values
@ 2023-08-04  9:32 Ruan Jinjie
  2023-08-04  9:32 ` [PATCH -next 1/5] usb: gadget: udc: Remove " Ruan Jinjie
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Ruan Jinjie @ 2023-08-04  9:32 UTC (permalink / raw)
  To: peter.chen, gregkh, leoyang.li, b-liu, valentina.manea.m, shuah,
	i, stern, u.kleine-koenig, aaro.koskinen, void0red, linux-usb,
	linuxppc-dev
  Cc: ruanjinjie

The NULL initialization of the pointers assigned by kzalloc() first is
not necessary, because if the kzalloc() failed, the pointers will be
assigned NULL, otherwise it works as usual. so remove it.

Ruan Jinjie (5):
  usb: gadget: udc: Remove unnecessary NULL values
  USB: misc: Remove unnecessary NULL values
  usb: chipidea: udc: Remove an unnecessary NULL value
  usb: musb: Remove an unnecessary NULL value
  USB: usbip: Remove an unnecessary NULL value

 drivers/usb/chipidea/udc.c            | 2 +-
 drivers/usb/gadget/udc/fsl_udc_core.c | 2 +-
 drivers/usb/gadget/udc/mv_u3d_core.c  | 4 ++--
 drivers/usb/gadget/udc/mv_udc_core.c  | 2 +-
 drivers/usb/misc/cypress_cy7c63.c     | 2 +-
 drivers/usb/misc/cytherm.c            | 2 +-
 drivers/usb/misc/usbsevseg.c          | 2 +-
 drivers/usb/musb/musb_gadget.c        | 2 +-
 drivers/usb/usbip/vudc_dev.c          | 2 +-
 9 files changed, 10 insertions(+), 10 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2023-08-05  2:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-04  9:32 [PATCH -next 0/5] usb: Remove many unnecessary NULL values Ruan Jinjie
2023-08-04  9:32 ` [PATCH -next 1/5] usb: gadget: udc: Remove " Ruan Jinjie
2023-08-04  9:32 ` [PATCH -next 2/5] USB: misc: " Ruan Jinjie
2023-08-04  9:32 ` [PATCH -next 3/5] usb: chipidea: udc: Remove an unnecessary NULL value Ruan Jinjie
2023-08-04  9:32 ` [PATCH -next 4/5] usb: musb: " Ruan Jinjie
2023-08-04  9:32 ` [PATCH -next 5/5] USB: usbip: " Ruan Jinjie
2023-08-04 20:09   ` shuah
2023-08-05  2:46     ` Ruan Jinjie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).