usb: dwc3: debugfs: fix error check
authorFelipe Balbi <balbi@ti.com>
Tue, 31 Jan 2012 11:33:32 +0000 (13:33 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 6 Feb 2012 09:48:41 +0000 (11:48 +0200)
commit3d4c0d4ffb418800b2d1af111f9e1d5b204ee55c
treec4249599f33d1c402c0689272e9074a884846c6d
parent45b3cd4ad79b31289aa7da7a6448ec5afb7780a4
usb: dwc3: debugfs: fix error check

debugfs APIs will return NULL if it fails
to create the file/directory we ask it to
create.

Instead of checking for IS_ERR(ptr) we must
check for !ptr.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/debugfs.c