diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2015-04-27 12:23:01 +0300 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2015-06-22 16:54:06 +0300 |
commit | 0b3330f310b520f53a88a06bf44a4a6fda6b1a88 (patch) | |
tree | be8e8dd844c7b310b3b749f0ae89f16eeea2ab08 /drivers/reset | |
parent | d2f78268ba583f75d5a67d44b8ef4b1560d6f597 (diff) | |
download | linux-0b3330f310b520f53a88a06bf44a4a6fda6b1a88.tar.xz |
watchdog: omap: simplify assignment of bootstatus
Instead of using an over-long expression involving the ?: operator use
an if and instead of an else branch rely on the fact that the data
structure was allocated using devm_kzalloc. This also allows to put the
used helper variable into a more local scope.
There is no functional change.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/reset')
0 files changed, 0 insertions, 0 deletions