Fix -Wuninitialized warning with gcc

Initialize mmc_data_byte to 0, as it could be used uninitialized
later on.

MFC with:	r320846
Reported by:	Jenkins (powerpc jobs)
This commit is contained in:
ngie 2017-07-10 04:28:28 +00:00
parent 898d1917b8
commit 12774fe95f

View File

@ -7360,7 +7360,7 @@ mmcsdcmd(struct cam_device *device, int argc, char **argv, char *combinedopt,
int is_highspeed = 0, is_stdspeed = 0;
int is_info_request = 0;
int flags = 0;
uint8_t mmc_data_byte;
uint8_t mmc_data_byte = 0;
/* For IO_RW_EXTENDED command */
uint8_t *mmc_data = NULL;