summaryrefslogtreecommitdiff
path: root/drivers/md/dm-raid.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-10-23 04:56:56 (GMT)
committerTakashi Iwai <tiwai@suse.de>2015-10-23 04:56:56 (GMT)
commitb9b6e4ac2da74995cb7ac9394854a5fd563014c2 (patch)
tree9a8db7b1f46d6542f9af2c87989cdafc3487a2c1 /drivers/md/dm-raid.c
parentd289619a219dd01e255d7b5e30f9171b25efea48 (diff)
parentf69eccc4b248ce53b1b830034babd0a795d5763c (diff)
downloadlinux-b9b6e4ac2da74995cb7ac9394854a5fd563014c2.tar.xz
Merge tag 'asoc-fix-v4.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v4.3 A bunch of driver fixes plus one core fix which fixes problems with misreporting values from _SX controls following a recent refactoring. This had gone unnoticed as such controls are quite rare.
Diffstat (limited to 'drivers/md/dm-raid.c')
-rw-r--r--drivers/md/dm-raid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c
index 97e1651..a090121 100644
--- a/drivers/md/dm-raid.c
+++ b/drivers/md/dm-raid.c
@@ -329,8 +329,7 @@ static int validate_region_size(struct raid_set *rs, unsigned long region_size)
*/
if (min_region_size > (1 << 13)) {
/* If not a power of 2, make it the next power of 2 */
- if (min_region_size & (min_region_size - 1))
- region_size = 1 << fls(region_size);
+ region_size = roundup_pow_of_two(min_region_size);
DMINFO("Choosing default region size of %lu sectors",
region_size);
} else {