USB: r8a66597: clean up. remove unneeded null checks
authorDan Carpenter <error27@gmail.com>
Tue, 10 Nov 2009 08:53:58 +0000 (10:53 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:55:22 +0000 (11:55 -0800)
commita33279dfd825846325546b4d42d542b214ccb8d9
tree0002b1eb13523c1c39911954db05712460e790a7
parentfb34d53752d5bec5acc73422e462a9c68aeeaa2a
USB: r8a66597: clean up. remove unneeded null checks

td and dev can not be null.

Also they are dereferenced in list_for_each_entry_safe and list_for_each
before the check happens so we would have an oops if it were possible
for them to be null.

Found using the smatch static checker.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/r8a66597-hcd.c