mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 11:40:19 -04: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user