staging: ft1000: fix uninitialized return variable in request_code_segment
authorAdam Lee <adam8157@gmail.com>
Mon, 25 Nov 2013 07:07:36 +0000 (15:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2013 20:41:43 +0000 (12:41 -0800)
commit8a76714dd3755536a28f0d0b9c5fc378c492da40
tree9952c024137c016ad6dc7b96612014ed7bf6c762
parent0b71fe36c5fc6546ee6cd60bce2ba78a94f96353
staging: ft1000: fix uninitialized return variable in request_code_segment

The return variable of request_code_segment() is used uninitialized if
the argument boot_case is false, this patch fixes it.

FYI, in ft1000_usb.h: STATUS_SUCCESS 0, and STATUS_FAILURE 0x1001.

Signed-off-by: Adam Lee <adam8157@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-usb/ft1000_download.c