]> git.karo-electronics.de Git - linux-beck.git/commit
powerpc: Update of_remove_property() call sites to remove null checking
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Thu, 28 Apr 2016 05:34:55 +0000 (15:34 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 11 May 2016 11:54:04 +0000 (21:54 +1000)
commit925e2d1ded80fcc92210c9a9e5009887553dd83f
tree220493c3540fb1bf9e8bed14e43ab36afc0cb434
parent201b3fe586361c0241105f6e3de2c4749010f897
powerpc: Update of_remove_property() call sites to remove null checking

After obtaining a property from of_find_property() and before calling
of_remove_property() most code checks to ensure that the property
returned from of_find_property() is not null. The previous patch moved
this check to the start of the function of_remove_property() in order to
avoid the case where this check isn't done and a null value is passed.
This ensures the check is always conducted before taking locks and
attempting to remove the property. Thus it is no longer necessary to
perform a check for null values before invoking of_remove_property().

Update of_remove_property() call sites in order to remove redundant
checking for null property value as check is now performed within the
of_remove_property function().

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
[mpe: Unbreak some lines which are just >80 chars for readability]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/machine_kexec.c
arch/powerpc/kernel/machine_kexec_64.c
arch/powerpc/platforms/pseries/mobility.c
arch/powerpc/platforms/pseries/reconfig.c