Skip to content

Commit 9878647

Browse files
nvswarrenbroonie
authored andcommitted
regmap: mmio: remove some error checks now in the core
These error checks are implemented in regmap core. Remove the duplicate code from regmap-mmio.c Signed-off-by: Stephen Warren <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 40606db commit 9878647

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/base/regmap/regmap-mmio.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ static int regmap_mmio_gather_write(void *context,
3737

3838
BUG_ON(reg_size != 4);
3939

40-
if (val_size % ctx->val_bytes)
41-
return -EIO;
42-
4340
offset = be32_to_cpup(reg);
4441

4542
while (val_size) {
@@ -86,9 +83,6 @@ static int regmap_mmio_read(void *context,
8683

8784
BUG_ON(reg_size != 4);
8885

89-
if (val_size % ctx->val_bytes)
90-
return -EIO;
91-
9286
offset = be32_to_cpup(reg);
9387

9488
while (val_size) {

0 commit comments

Comments
 (0)