mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 03:06:41 +07:00
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 <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
ae5d8af579
commit
8664d4901f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user