summaryrefslogtreecommitdiff
path: root/sys/dev/microcode
diff options
context:
space:
mode:
authorbouyer <bouyer@NetBSD.org>2018-02-07 14:42:07 +0000
committerbouyer <bouyer@NetBSD.org>2018-02-07 14:42:07 +0000
commit7e891daca13c5c1ec40d81e53ed48735ed3be8a9 (patch)
tree449c71df4ab6a586bcda2b836fdc2852e7d9f1c9 /sys/dev/microcode
parent885e59916b6f3867e1651481bd2421adc0d4a7e6 (diff)
Fix uninitialized variable use:
if there is an error, or if we are using a SPI controller, sdmmc_mem_send_op_cond() doens't assign a value to *ocrp, but it is used unconditionally in sdmmc_mem_enable() to see if we can switch to low voltage. In sdmmc_mem_send_op_cond(), if the new ocr is not returned by the card for whatever reason, set *ocrp to the orig value.
Diffstat (limited to 'sys/dev/microcode')
0 files changed, 0 insertions, 0 deletions