block: cleanup queue_wc_store
authorChristoph Hellwig <hch@lst.de>
Fri, 7 Jul 2023 09:42:38 +0000 (11:42 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Jul 2023 14:18:17 +0000 (08:18 -0600)
commitc4e21bcd0f9d01f9c5d6c52007f5541871a5b1de
treed38305c508ba85f2f4a262cb6040936590c2c09a
parentffe357c868e7796f20bc0eac61f5b952731c0fa8
block: cleanup queue_wc_store

Get rid of the local queue_wc_store variable and handling setting and
clearing the QUEUE_FLAG_WC flag diretly instead the if / else if.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230707094239.107968-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-sysfs.c