From: Guennadi Liakhovetski Date: Thu, 3 Nov 2011 09:12:36 +0000 (+0100) Subject: PM / QoS: Remove redundant check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6513fd6972f725291ee8ce62c7a39fb8a6c7391e;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git PM / QoS: Remove redundant check Remove an "if" check, that repeats an equivalent one 6 lines above. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Rafael J. Wysocki --- diff --git a/kernel/power/qos.c b/kernel/power/qos.c index 1c1797dd1d1..5167d996cd0 100644 --- a/kernel/power/qos.c +++ b/kernel/power/qos.c @@ -386,8 +386,7 @@ static int pm_qos_power_open(struct inode *inode, struct file *filp) pm_qos_add_request(req, pm_qos_class, PM_QOS_DEFAULT_VALUE); filp->private_data = req; - if (filp->private_data) - return 0; + return 0; } return -EPERM; }