Re: [PATCH] null_blk: fix validation of block size
From: Bart Van Assche
Date: Mon Jun 03 2024 - 13:04:37 EST
On 6/1/24 13:23, Andreas Hindborg wrote:
+ ((dev->blocksize & (dev->blocksize - 1)) != 0)) {
Please use is_power_of_2() instead of open-coding it.
Bart.