Skip to content
Commit b5a9adcb authored by Waiman Long's avatar Waiman Long Committed by Jens Axboe
Browse files

blk-cgroup: Return -ENOMEM directly in blkcg_css_alloc() error path



For blkcg_css_alloc(), the only error that will be returned is -ENOMEM.
Simplify error handling code by returning this error directly instead
of setting an intermediate "ret" variable.

Signed-off-by: default avatarWaiman Long <longman@redhat.com>
Reviewed-by: default avatarMing Lei <ming.lei@redhat.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20221105005902.407297-2-longman@redhat.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 077a4033
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment