mbox series

[-next,0/5] usb: Remove many unnecessary NULL values

Message ID 20230804093253.91647-1-ruanjinjie@huawei.com
Headers show
Series usb: Remove many unnecessary NULL values | expand

Message

Jinjie Ruan Aug. 4, 2023, 9:32 a.m. UTC
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(-)