commit | 5332dfc36483d2373d980526145789a354af2d49 | [log] [tgz] |
---|---|---|
author | Tejun Heo <tj@kernel.org> | Tue Aug 18 14:55:27 2015 -0700 |
committer | Jens Axboe <axboe@fb.com> | Tue Aug 18 15:49:18 2015 -0700 |
tree | 8e651633e054aa973eefec787b73ced5013ec107 | |
parent | 3a7faeada20d72f07d3a7b13454859025cd50a36 [diff] |
blkcg: remove unnecessary NULL checks from __cfqg_set_weight_device() blkg_to_cfqg() and blkcg_to_cfqgd() on a valid blkg with the policy enabled are guaranteed to return non-NULL and the counterpart in blk-throttle doesn't have these checks either. Remove the spurious NULL checks. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@fb.com>