Skip to content

Commit

Permalink
PM / QoS: Remove redundant check
Browse files Browse the repository at this point in the history
Remove an "if" check, that repeats an equivalent one 6 lines above.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
  • Loading branch information
Guennadi Liakhovetski authored and Rafael J. Wysocki committed Nov 4, 2011
1 parent a96d69d commit 6513fd6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/power/qos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6513fd6

Please sign in to comment.