Skip to content

Commit

Permalink
regmap: mmio: remove some error checks now in the core
Browse files Browse the repository at this point in the history
These error checks are implemented in regmap core. Remove the duplicate
code from regmap-mmio.c

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Stephen Warren authored and Mark Brown committed Apr 7, 2012
1 parent 40606db commit 9878647
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/base/regmap/regmap-mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 9878647

Please sign in to comment.