]> git.baikalelectronics.ru Git - kernel.git/commit
PM-wakeup: Delete unnecessary checks before three function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 23 Jul 2016 15:04:00 +0000 (17:04 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 28 Jul 2016 21:51:04 +0000 (23:51 +0200)
commit46c06055e264cf0df1ab33d82744ccbead412c30
tree909c9e9b7d1297655ad62c41c01594e484d3135e
parent7216271e12c181fd64bab01a231adfbc7e7d2b21
PM-wakeup: Delete unnecessary checks before three function calls

The following functions test whether their argument is NULL
and then return immediately.
 * dev_pm_arm_wake_irq
 * dev_pm_disarm_wake_irq
 * wakeup_source_unregister

Thus the test around the calls is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Pavel Machek <pavel@ucw.cz>
[ rjw: Minor whitespace adjustments ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/wakeup.c