]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/watchdog/pcwd_usb.c
Pull Kconfig into release branch
[linux-2.6-omap-h63xx.git] / drivers / char / watchdog / pcwd_usb.c
index 2700c5c45b8ab31aedba945ff39a9651812663f2..3fdfda9324fae46a3429f3191354ee4ffec4c2cf 100644 (file)
@@ -705,7 +705,8 @@ err_out_misc_deregister:
 err_out_unregister_reboot:
        unregister_reboot_notifier(&usb_pcwd_notifier);
 error:
-       usb_pcwd_delete (usb_pcwd);
+       if (usb_pcwd)
+               usb_pcwd_delete(usb_pcwd);
        usb_pcwd_device = NULL;
        return retval;
 }