提交 8664d490 编写于 作者: S Stephen Warren 提交者: Mark Brown

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: NStephen Warren <swarren@nvidia.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 ae5d8af5
...@@ -37,9 +37,6 @@ static int regmap_mmio_gather_write(void *context, ...@@ -37,9 +37,6 @@ static int regmap_mmio_gather_write(void *context,
BUG_ON(reg_size != 4); BUG_ON(reg_size != 4);
if (val_size % ctx->val_bytes)
return -EIO;
offset = be32_to_cpup(reg); offset = be32_to_cpup(reg);
while (val_size) { while (val_size) {
...@@ -86,9 +83,6 @@ static int regmap_mmio_read(void *context, ...@@ -86,9 +83,6 @@ static int regmap_mmio_read(void *context,
BUG_ON(reg_size != 4); BUG_ON(reg_size != 4);
if (val_size % ctx->val_bytes)
return -EIO;
offset = be32_to_cpup(reg); offset = be32_to_cpup(reg);
while (val_size) { while (val_size) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册