Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9878647f authored by Stephen Warren's avatar Stephen Warren Committed by Mark Brown
Browse files

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: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 40606dba
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -37,9 +37,6 @@ static int regmap_mmio_gather_write(void *context,

	BUG_ON(reg_size != 4);

	if (val_size % ctx->val_bytes)
		return -EIO;

	offset = be32_to_cpup(reg);

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

	BUG_ON(reg_size != 4);

	if (val_size % ctx->val_bytes)
		return -EIO;

	offset = be32_to_cpup(reg);

	while (val_size) {