mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08: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