mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-17 22:05:08 +00:00
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>
This commit is contained in:
parent
708368fb84
commit
9de17578b9
@ -1130,7 +1130,7 @@ static int musb_gadget_disable(struct usb_ep *ep)
|
||||
struct usb_request *musb_alloc_request(struct usb_ep *ep, gfp_t gfp_flags)
|
||||
{
|
||||
struct musb_ep *musb_ep = to_musb_ep(ep);
|
||||
struct musb_request *request = NULL;
|
||||
struct musb_request *request;
|
||||
|
||||
request = kzalloc(sizeof *request, gfp_flags);
|
||||
if (!request)
|
||||
|
Loading…
x
Reference in New Issue
Block a user