Skip to content

Commit

Permalink
staging: ft1000: fix use of potentially uninitialized variable
Browse files Browse the repository at this point in the history
If boot_case is false, status in never assigned a value.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Michal Nazarewicz authored and Greg Kroah-Hartman committed Nov 25, 2013
1 parent 66a528c commit 8aced95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/ft1000/ft1000-usb/ft1000_download.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -1074,4 +1074,3 @@ int scram_dnldr(struct ft1000_usb *ft1000dev, void *pFileStart,

return status;
}

0 comments on commit 8aced95

Please sign in to comment.