[PATCH -next 0/5] usb: Remove many unnecessary NULL values
Ruan Jinjie
ruanjinjie at huawei.com
Fri Aug 4 19:32:48 AEST 2023
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
More information about the Linuxppc-dev
mailing list