Skip to content

Commit 7ece2e4

Browse files
Jiamin Maakiernan
authored andcommitted
iomap: remove unnecessary comparison
PD#152908: driver defect clean up torvalds#364 torvalds#365 torvalds#366 Change-Id: I53c4bd4cbe1cc82408ec3f0b30b3b8e696ea1fc2 Signed-off-by: Jiamin Ma <[email protected]>
1 parent 24fe21a commit 7ece2e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/amlogic/iomap/iomap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void __iomem *meson_reg_map[IO_BUS_MAX];
4141

4242
int aml_reg_read(u32 bus_type, unsigned int reg, unsigned int *val)
4343
{
44-
if ((bus_type >= IO_CBUS_BASE) && (bus_type < IO_BUS_MAX)) {
44+
if (bus_type < IO_BUS_MAX) {
4545
*val = readl((meson_reg_map[bus_type]+reg));
4646
return 0;
4747
} else
@@ -51,7 +51,7 @@ EXPORT_SYMBOL(aml_reg_read);
5151

5252
int aml_reg_write(u32 bus_type, unsigned int reg, unsigned int val)
5353
{
54-
if ((bus_type >= IO_CBUS_BASE) && (bus_type < IO_BUS_MAX)) {
54+
if (bus_type < IO_BUS_MAX) {
5555
writel(val, (meson_reg_map[bus_type]+reg));
5656
return 0;
5757
} else
@@ -63,7 +63,7 @@ int aml_regmap_update_bits(u32 bus_type,
6363
unsigned int reg, unsigned int mask,
6464
unsigned int val)
6565
{
66-
if ((bus_type >= IO_CBUS_BASE) && (bus_type < IO_BUS_MAX)) {
66+
if (bus_type < IO_BUS_MAX) {
6767
unsigned int tmp, orig;
6868

6969
aml_reg_read(bus_type, reg, &orig);

0 commit comments

Comments
 (0)