watchdog: shwdt: Remove the unnecessary check of resource after platform_get_resource()
authorGeorge Cherian <george.cherian@ti.com>
Tue, 10 Jun 2014 04:40:08 +0000 (10:10 +0530)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 5 Aug 2014 20:42:56 +0000 (22:42 +0200)
commit2cdf25bb574c20efde0340ffa90f08d1609ef97c
treea87cdbf19254def17b66ad7c31067bb056fd1d28
parent37f152915fba723de7e5bf43ade3bd971977b724
watchdog: shwdt: Remove the unnecessary check of resource after platform_get_resource()

devm_ioremap_resource check for a valid resource. Remove the unnecessary check.
Also group platform_get_resource and devm_ioremap_resource together for better
readability.

Signed-off-by: George Cherian <george.cherian@ti.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/shwdt.c