From: Uwe Kleine-König Date: Mon, 27 Apr 2015 09:23:01 +0000 (+0200) Subject: watchdog: omap: simplify assignment of bootstatus X-Git-Tag: omap-for-v4.2/fixes-rc1^2~49^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b3330f310b520f53a88a06bf44a4a6fda6b1a88;p=pandora-kernel.git 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 Reviewed-by: Felipe Balbi Reviewed-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- Reading git-diff-tree failed