From: Ivan Gomez Castellanos Date: Wed, 25 Aug 2010 22:08:58 +0000 (-0500) Subject: staging: tidspbridge: Remove cfg_get_dev_object() and do a trivial cleanup X-Git-Tag: v2.6.37-rc1~60^2~3^2~815 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8184e6c2d32eb4418f6084155ac1ffb08c751e8;p=pandora-kernel.git staging: tidspbridge: Remove cfg_get_dev_object() and do a trivial cleanup The cfg_get_dev_object function is only used in one place and because of its simplicity, it can be removed. The parameter *value can be left uninitialized if the strcmp() returns a nonzero value, so in the function dev_remove_device(), the hdev_obj could be used uninitialized and could be dereferenced in dev_destroy_device(). This patch fixes this issue, and also removes the dev_obj pointer which is not used. Signed-off-by: Ivan Gomez Castellanos Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed