usb: musb: Remove an unnecessary NULL value
authorRuan Jinjie <ruanjinjie@huawei.com>
Fri, 4 Aug 2023 09:32:52 +0000 (17:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Aug 2023 12:48:55 +0000 (14:48 +0200)
commit9de17578b912f39e818035a217efd82a98cd26a6
treebe5085046f0cba04c30c5b51bee7d9f4b1a4364d
parent708368fb845f668ae5817f101e61bad8bbdc2bb8
usb: musb: Remove an unnecessary NULL value

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.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230804093253.91647-5-ruanjinjie@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_gadget.c