lkml.org 
[lkml]   [2012]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] regmap: mmio: remove some error checks now in the core
Date
From: Stephen Warren <swarren@nvidia.com>

These error checks are implemented in regmap core. Remove the duplicate
code from regmap-mmio.c

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
This logically slight depends on "regmap: validate regmap_raw_read/write
val_len" that I just sent, but its not really a big deal.

drivers/base/regmap/regmap-mmio.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/drivers/base/regmap/regmap-mmio.c b/drivers/base/regmap/regmap-mmio.c
index ffa0e85..bdf4dc8 100644
--- a/drivers/base/regmap/regmap-mmio.c
+++ b/drivers/base/regmap/regmap-mmio.c
@@ -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) {
--
1.7.0.4


\
 
 \ /
  Last update: 2012-04-06 23:19    [W:0.035 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site