]> git.karo-electronics.de Git - mv-sheeva.git/commit
Staging: bcm: remove unneeded NULL check
authorDan Carpenter <error27@gmail.com>
Fri, 8 Oct 2010 12:57:44 +0000 (14:57 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Oct 2010 14:29:56 +0000 (07:29 -0700)
commit02339374cf3a28c30b5a137ab181eed358589dea
tree96f7342556c38a47013a3f6ed75dcb48233982d4
parentef5d2056456d63528daa762b32afa5c430635f33
Staging: bcm: remove unneeded NULL check

The error handling here is wrong.  If psIntfAdapter were NULL then we
would have a NULL dereference in the debug output on the error path.
But this function is only called from usbbcm_device_probe() when
psIntfAdapter is non-NULL.

Since the check isn't needed and I removed it instead of fixing it.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/bcm/InterfaceInit.c