]> git.sur5r.net Git - u-boot/commit
bcm281xx: clock: avoid possible NULL dereference
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Sun, 30 Jul 2017 18:27:16 +0000 (20:27 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 13 Aug 2017 19:17:27 +0000 (15:17 -0400)
commit6def7de37ba2aeb3d59c561b288537d8c3712c73
treefd37de32ae67577d6d7cbc30bff0934dc6cdd91e
parent65e8ce29e4efc7f1716828ec845bd294a942e1ca
bcm281xx: clock: avoid possible NULL dereference

It does not make sense first to dereference c and then
to check if it is NULL.

The problem was indicated by cppcheck.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
arch/arm/cpu/armv7/bcm281xx/clk-core.c