Re: [PATCH v2 02/12] mmc: sd: add support for signal voltage switch procedure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +	if (host->version >= SDHCI_SPEC_300)
> +		caps[1] = sdhci_readl(host, SDHCI_CAPABILITIES_1);

Now caps[1] can be uninitialized (didn't the compiler warn about this?)
Maybe

	caps[1] = host->version... ? sdhci_readl() : 0

(or simply an else branch)?

Regards,

   Wolfram

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux