]> www.infradead.org Git - users/hch/block.git/commit
sd: simplify the disable case in sd_config_discard
authorChristoph Hellwig <hch@lst.de>
Tue, 21 May 2024 20:13:48 +0000 (13:13 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 31 May 2024 07:29:23 +0000 (09:29 +0200)
commit047cca762c846ef5972416e7e89325c586c5ce09
tree005cbc40765ae9c707625452a1e804f8036bcc81
parent84935658c6e4eeca6e22cbd92cbb5ee3b87000c5
sd: simplify the disable case in sd_config_discard

Fall through to the main call to blk_queue_max_discard_sectors given that
max_blocks has been initialized to zero above instead of duplicating the
call.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
drivers/scsi/sd.c