diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2014-02-24 16:39:53 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-02-24 14:46:38 -0800 |
commit | d9a74df512e44580a34bf6e70f5d08c126507354 (patch) | |
tree | fc9436ccbcbbc40bc4c9665475aa09161fe306a7 | |
parent | 8b4922d3173d2eee7b43be8e5caec3ab7d30feff (diff) | |
download | talos-obmc-linux-d9a74df512e44580a34bf6e70f5d08c126507354.tar.gz talos-obmc-linux-d9a74df512e44580a34bf6e70f5d08c126507354.zip |
block: Remove useless IPI struct initialization
rq_fifo_clear() reset the csd.list through INIT_LIST_HEAD for no clear
purpose. The csd.list doesn't need to be initialized as a list head
because it's only ever used as a list node.
Lets remove this useless initialization.
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jan Kara <jack@suse.cz>
Cc: Jens Axboe <axboe@fb.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r-- | include/linux/elevator.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/elevator.h b/include/linux/elevator.h index 0bdfd46f4735..df63bd3a8cf1 100644 --- a/include/linux/elevator.h +++ b/include/linux/elevator.h @@ -203,10 +203,7 @@ enum { #define rb_entry_rq(node) rb_entry((node), struct request, rb_node) #define rq_entry_fifo(ptr) list_entry((ptr), struct request, queuelist) -#define rq_fifo_clear(rq) do { \ - list_del_init(&(rq)->queuelist); \ - INIT_LIST_HEAD(&(rq)->csd.list); \ - } while (0) +#define rq_fifo_clear(rq) list_del_init(&(rq)->queuelist) #else /* CONFIG_BLOCK */ |