diff options
| author | Ivan Gomez Castellanos <ivan.gomez@ti.com> | 2010-08-26 02:08:58 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-31 22:23:15 +0400 |
| commit | e8184e6c2d32eb4418f6084155ac1ffb08c751e8 (patch) | |
| tree | b22a075c9f18ca95684161cc4bf049eb76cdf722 /include | |
| parent | 345c8bec42d7c55f98167da596ea5ca5f53d9f7d (diff) | |
| download | linux-e8184e6c2d32eb4418f6084155ac1ffb08c751e8.tar.xz | |
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 <ivan.gomez@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
