USB: gadget: ci13xx_udc: fix potential crash in irq handler
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 May 2012 18:37:18 +0000 (11:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 May 2012 18:37:18 +0000 (11:37 -0700)
commitf639554b8a3a4aac18193a0c98a4639d432c48f0
tree5a6aba2d397baab36eac55e2b4f58faa710a6836
parent126625e1bf3228a3db7359310344617bee878517
USB: gadget: ci13xx_udc: fix potential crash in irq handler

As pointed out by Dan Carpenter, we should not be trying to call
dev_err() on a structure that was previously determined to be NULL,
that's just foolish and asking for trouble.

So just delete the message, it's not going to do anyone any good to have
it anyway.

This problem was caused by 0f089094cde5: "usb: gadget: ci13xxx: replace
home-brewed logging with dev_{err,warn,info}"

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/ci13xxx_udc.c