diff options
author | Michal Nazarewicz <mina86@mina86.com> | 2013-11-10 19:37:54 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-25 09:25:18 -0800 |
commit | 8aced950222434b84e568663f5941ea39f112a7f (patch) | |
tree | 4e764f7dc9f9496ff8fdbdff817eda1733956288 /drivers/staging/ft1000 | |
parent | 66a528c1c3d66442e1fbb1e3c512f7557fa0d0c3 (diff) | |
download | linux-stable-8aced950222434b84e568663f5941ea39f112a7f.tar.gz linux-stable-8aced950222434b84e568663f5941ea39f112a7f.tar.bz2 linux-stable-8aced950222434b84e568663f5941ea39f112a7f.zip |
staging: ft1000: fix use of potentially uninitialized variable
If boot_case is false, status in never assigned a value.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ft1000')
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_download.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c index 68ded17c0f5c..12f333fa59b5 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c @@ -578,7 +578,7 @@ static int request_code_segment(struct ft1000_usb *ft1000dev, u16 **s_file, u8 **c_file, const u8 *endpoint, bool boot_case) { long word_length; - int status; + int status = 0; /*DEBUG("FT1000:REQUEST_CODE_SEGMENT\n");i*/ word_length = get_request_value(ft1000dev); @@ -1074,4 +1074,3 @@ int scram_dnldr(struct ft1000_usb *ft1000dev, void *pFileStart, return status; } - |