]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
common/env_nand.c: calculate crc only when readenv was OK
authorPhil Sutter <phil.sutter@viprinet.com>
Thu, 21 Feb 2013 17:21:56 +0000 (18:21 +0100)
committerScott Wood <scottwood@freescale.com>
Sat, 23 Feb 2013 01:59:53 +0000 (19:59 -0600)
commita1eac57a2001ecf86a46f520cd85ef8e9c8b3687
tree1064af3d3d74305468904b6a1a00969c941fe8f3
parentb76a147b722565bde046f707a5cc92df8ea29738
common/env_nand.c: calculate crc only when readenv was OK

Calculating the checksum of incompletely read data is useless.

Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
[scottwood@freescale.com: minor formatting fix]
Signed-off-by: Scott Wood <scottwood@freescale.com>
common/env_nand.c