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>
Thu, 22 Mar 2012 08:45:38 +0000 (10:45 +0200)
commit205c202751b359b605ec87b599e65020ffad079e
treee843c7d99e646189c2dc822bea57d83e9b5be1ce
parent5a8bcba8fb666bb785707c8fccc7ac232de8204e
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