Re: [PATCH] PM / wakeup: Drop redundant check from device_init_wakeup()

2018-01-02 Thread Ulf Hansson
On 2 January 2018 at 01:42, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Since device_wakeup_disable() checks the device's power.can_wakeup > flag, device_init_wakeup() doesn't need to do that before calling it, > so drop that redundant

Re: [PATCH] PM / wakeup: Drop redundant check from device_init_wakeup()

2018-01-02 Thread Ulf Hansson
On 2 January 2018 at 01:42, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Since device_wakeup_disable() checks the device's power.can_wakeup > flag, device_init_wakeup() doesn't need to do that before calling it, > so drop that redundant check from device_init_wakeup(). > > No

[PATCH] PM / wakeup: Drop redundant check from device_init_wakeup()

2018-01-01 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since device_wakeup_disable() checks the device's power.can_wakeup flag, device_init_wakeup() doesn't need to do that before calling it, so drop that redundant check from device_init_wakeup(). No intentional changes in functionality.

[PATCH] PM / wakeup: Drop redundant check from device_init_wakeup()

2018-01-01 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since device_wakeup_disable() checks the device's power.can_wakeup flag, device_init_wakeup() doesn't need to do that before calling it, so drop that redundant check from device_init_wakeup(). No intentional changes in functionality. Signed-off-by: Rafael J. Wysocki