summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-05-16 12:54:29 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-05-16 19:15:59 +0200
commit0d188aca536284f3c9650d8857c43c0dd5a81c2c (patch)
tree81f80da7fd4c38420fba98799dc7684e0fc451f8 /common
parent16678a3a433a6bcf30e8a7f275a4a9491a7d4e79 (diff)
downloadbarebox-0d188aca536284f3c9650d8857c43c0dd5a81c2c.tar.gz
barebox-0d188aca536284f3c9650d8857c43c0dd5a81c2c.tar.xz
mfd mc13xxxx: Set mc_dev to NULL on failure
The mc13xxx driver correctly bails out on failure, but leaves mc_dev initialized, so a later mc13xxx_get won't fail but returns an invalid pointer. Fix this. While at it, remove some superfluous code from mc13xxx_get. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions