From: Michal Nazarewicz Date: Sun, 10 Nov 2013 18:37:54 +0000 (+0100) Subject: staging: ft1000: fix use of potentially uninitialized variable X-Git-Tag: v4.9.8~7351^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8aced950222434b84e568663f5941ea39f112a7f;p=platform%2Fkernel%2Flinux-rpi3.git 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 --- diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c index 68ded17..12f333f 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; } -