USB: test for NULL return from platform_get_resource() in ohci_hcd_sm501_drv_remove()
authorJesper Juhl <jesper.juhl@gmail.com>
Fri, 21 Mar 2008 21:55:45 +0000 (22:55 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Apr 2008 04:16:45 +0000 (21:16 -0700)
commit119fc8c9acde650fb92b44c34ea6fc84feb0f6dd
tree7210bc10f578254b107b02d9657a95226a0ed94b
parente04d80b03d2a116ddd6eb9140c8c83760c315b94
USB: test for NULL return from platform_get_resource() in ohci_hcd_sm501_drv_remove()

platform_get_resource() may return null, so although it seems it will never
do so here unless there's a bug elsewhere, it does no harm to be defensive
and test.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ohci-sm501.c