mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00: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
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue