mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
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>
This commit is contained in:
parent
66a528c1c3
commit
8aced95022
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
u8 **c_file, const u8 *endpoint, bool boot_case)
|
||||||
{
|
{
|
||||||
long word_length;
|
long word_length;
|
||||||
int status;
|
int status = 0;
|
||||||
|
|
||||||
/*DEBUG("FT1000:REQUEST_CODE_SEGMENT\n");i*/
|
/*DEBUG("FT1000:REQUEST_CODE_SEGMENT\n");i*/
|
||||||
word_length = get_request_value(ft1000dev);
|
word_length = get_request_value(ft1000dev);
|
||||||
|
@ -1074,4 +1074,3 @@ int scram_dnldr(struct ft1000_usb *ft1000dev, void *pFileStart,
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue