diff options
author | Dan Carpenter <error27@gmail.com> | 2010-11-13 08:24:22 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-16 20:31:50 (GMT) |
commit | 2e3161390130f50fdbb4b989c667f42e5008107f (patch) | |
tree | 70ba420f8ca3627173848cf99ca4e07465846a33 /drivers/staging/bcm | |
parent | f05321cca53da7c7abad4bc726699e9f27bf4922 (diff) | |
download | linux-2e3161390130f50fdbb4b989c667f42e5008107f.tar.xz |
Staging: bcm: signedness bug in InitCardAndDownloadFirmware()
status is used to store negative error codes throughout. The only place
where this is a runtime bug is if create_worker_threads() fails.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/bcm')
-rw-r--r-- | drivers/staging/bcm/Misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/bcm/Misc.c b/drivers/staging/bcm/Misc.c index 023c511..9588fbe 100644 --- a/drivers/staging/bcm/Misc.c +++ b/drivers/staging/bcm/Misc.c @@ -1079,7 +1079,7 @@ int run_card_proc(PMINI_ADAPTER ps_adapter ) int InitCardAndDownloadFirmware(PMINI_ADAPTER ps_adapter) { - UINT status = STATUS_SUCCESS; + int status; UINT value = 0; /* * Create the threads first and then download the |