mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Block: blk-cgroup: fixed compiler warning about unused local variable
@ 2012-06-23  6:09 Chad Williamson
  2012-06-23  7:51 ` Chad Williamson
  0 siblings, 1 reply; 2+ messages in thread
From: Chad Williamson @ 2012-06-23  6:09 UTC (permalink / raw)
  To: axboe; +Cc: linux-kernel, Chad Williamson

Removed an unnecessary local variable in blkg_destroy() which was
causing a compiler warning.

Signed-off-by: Chad Williamson <chad@dahc.us>
---
 block/blk-cgroup.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c
index 02cf633..14bd85c 100644
--- a/block/blk-cgroup.c
+++ b/block/blk-cgroup.c
@@ -245,10 +245,9 @@ EXPORT_SYMBOL_GPL(blkg_lookup_create);
 
 static void blkg_destroy(struct blkcg_gq *blkg)
 {
-	struct request_queue *q = blkg->q;
 	struct blkcg *blkcg = blkg->blkcg;
 
-	lockdep_assert_held(q->queue_lock);
+	lockdep_assert_held(blkg->q->queue_lock);
 	lockdep_assert_held(&blkcg->lock);
 
 	/* Something wrong if we are trying to remove same group twice */
-- 
1.7.7


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Block: blk-cgroup: fixed compiler warning about unused local variable
  2012-06-23  6:09 [PATCH] Block: blk-cgroup: fixed compiler warning about unused local variable Chad Williamson
@ 2012-06-23  7:51 ` Chad Williamson
  0 siblings, 0 replies; 2+ messages in thread
From: Chad Williamson @ 2012-06-23  7:51 UTC (permalink / raw)
  To: axboe; +Cc: linux-kernel

Apologies; this is already fixed in linux-next.

Chad

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-23  7:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-23  6:09 [PATCH] Block: blk-cgroup: fixed compiler warning about unused local variable Chad Williamson
2012-06-23  7:51 ` Chad Williamson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®