Skip to content

Commit

Permalink
USB: drivers/usb/storage/sddr55.c: fix uninitialized var warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
akpm00 authored and gregkh committed Mar 10, 2008
1 parent b507cc9 commit 8a20acc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/storage/sddr55.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8a20acc

Please sign in to comment.