USB: goku_udc: remove potential null dereference
authorDan Carpenter <error27@gmail.com>
Sat, 6 Mar 2010 11:08:56 +0000 (14:08 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Mar 2010 14:24:19 +0000 (07:24 -0700)
commit872f8b42544c58dfa241956d220ada115a8e93c7
treeda0644f844142600d8b93724fdd241591febaac6
parent33c387529b7931248c6637bf9720ac7504a0b28b
USB: goku_udc: remove potential null dereference

"dev" is always null here.  In the end it's only used to get the
pci_name() of "pdev" which is redundant information and so I
removed it.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/goku_udc.c