USB: drivers/usb/storage/sddr55.c: fix uninitialized var warnings
drivers/usb/storage/sddr55.c: In function 'sddr55_transport': drivers/usb/storage/sddr55.c:526: warning: 'deviceID' may be used uninitialized in this function drivers/usb/storage/sddr55.c:525: warning: 'manufacturerID' may be used uninitialized in this function Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
b507cc9710
commit
8a20acc5fe
1 changed files with 2 additions and 2 deletions
|
@ -522,8 +522,8 @@ int sddr55_reset(struct us_data *us) {
|
|||
|
||||
static unsigned long sddr55_get_capacity(struct us_data *us) {
|
||||
|
||||
unsigned char manufacturerID;
|
||||
unsigned char deviceID;
|
||||
unsigned char uninitialized_var(manufacturerID);
|
||||
unsigned char uninitialized_var(deviceID);
|
||||
int result;
|
||||
struct sddr55_card_info *info = (struct sddr55_card_info *)us->extra;
|
||||
|
||||
|
|
Loading…
Reference in a new issue