mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 17:26:41 +07:00
usb: gadget: udc: lpc32xx: remove unnecessary NULL check
debugfs_remove() is safe against NULL pointers, so let's remove the unnecessary NULL check before calling it. Acked-by: Peter Chen <peter.chen@freeescale.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
6cd6159d4b
commit
23fba80a9b
@ -582,8 +582,7 @@ static void create_debug_file(struct lpc32xx_udc *udc)
|
||||
|
||||
static void remove_debug_file(struct lpc32xx_udc *udc)
|
||||
{
|
||||
if (udc->pde)
|
||||
debugfs_remove(udc->pde);
|
||||
debugfs_remove(udc->pde);
|
||||
}
|
||||
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user