Skip to content
Commit 27e1f9d1 authored by Tejun Heo's avatar Tejun Heo Committed by Jens Axboe
Browse files

blkcg: drop local variable @q from blkg_destroy()



blkg_destroy() caches @blkg->q in local variable @q.  While there are
two places which needs @blkg->q, only lockdep_assert_held() used the
local variable leading to unused local variable warning if lockdep is
configured out.  Drop the local variable and just use @blkg->q
directly.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Reported-by: default avatarRakesh Iyer <rni@google.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 7b421d24
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