of: Clean up of_update_property
authorGuenter Roeck <linux@roeck-us.net>
Tue, 15 Apr 2014 15:38:17 +0000 (08:38 -0700)
committerRob Herring <robh@kernel.org>
Tue, 15 Apr 2014 20:21:22 +0000 (15:21 -0500)
commite7a62df8e8b4a5ecbbf4339b5b3671ae6582e50a
treea0181e6f191aca891fc9e208b3fc5aef821a5796
parentf3afa2259457e46bbb6285bcc1032ecc0f76fdd7
of: Clean up of_update_property

After searching for the old property, bail out with -ENODEV
if it was not found.

It is unnecessary to check if oldprop is NULL before removing
its binary file; the check was already done before.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/base.c