drivers/net: return operator cleanup
Change "return (EXPR);" to "return EXPR;" return is not a function, parentheses are not required. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
cb4dfe562c
commit
807540baae
@@ -2095,11 +2095,11 @@ static void *emac_dump_regs(struct emac_instance *dev, void *buf)
|
||||
if (emac_has_feature(dev, EMAC_FTR_EMAC4)) {
|
||||
hdr->version = EMAC4_ETHTOOL_REGS_VER;
|
||||
memcpy_fromio(hdr + 1, dev->emacp, EMAC4_ETHTOOL_REGS_SIZE(dev));
|
||||
return ((void *)(hdr + 1) + EMAC4_ETHTOOL_REGS_SIZE(dev));
|
||||
return (void *)(hdr + 1) + EMAC4_ETHTOOL_REGS_SIZE(dev);
|
||||
} else {
|
||||
hdr->version = EMAC_ETHTOOL_REGS_VER;
|
||||
memcpy_fromio(hdr + 1, dev->emacp, EMAC_ETHTOOL_REGS_SIZE(dev));
|
||||
return ((void *)(hdr + 1) + EMAC_ETHTOOL_REGS_SIZE(dev));
|
||||
return (void *)(hdr + 1) + EMAC_ETHTOOL_REGS_SIZE(dev);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2293,7 +2293,7 @@ static int __devinit emac_check_deps(struct emac_instance *dev,
|
||||
if (deps[i].drvdata != NULL)
|
||||
there++;
|
||||
}
|
||||
return (there == EMAC_DEP_COUNT);
|
||||
return there == EMAC_DEP_COUNT;
|
||||
}
|
||||
|
||||
static void emac_put_deps(struct emac_instance *dev)
|
||||
|
@@ -410,7 +410,7 @@ static inline u32 *emac_xaht_base(struct emac_instance *dev)
|
||||
else
|
||||
offset = offsetof(struct emac_regs, u0.emac4.iaht1);
|
||||
|
||||
return ((u32 *)((ptrdiff_t)p + offset));
|
||||
return (u32 *)((ptrdiff_t)p + offset);
|
||||
}
|
||||
|
||||
static inline u32 *emac_gaht_base(struct emac_instance *dev)
|
||||
@@ -418,7 +418,7 @@ static inline u32 *emac_gaht_base(struct emac_instance *dev)
|
||||
/* GAHT registers always come after an identical number of
|
||||
* IAHT registers.
|
||||
*/
|
||||
return (emac_xaht_base(dev) + EMAC_XAHT_REGS(dev));
|
||||
return emac_xaht_base(dev) + EMAC_XAHT_REGS(dev);
|
||||
}
|
||||
|
||||
static inline u32 *emac_iaht_base(struct emac_instance *dev)
|
||||
@@ -426,7 +426,7 @@ static inline u32 *emac_iaht_base(struct emac_instance *dev)
|
||||
/* IAHT registers always come before an identical number of
|
||||
* GAHT registers.
|
||||
*/
|
||||
return (emac_xaht_base(dev));
|
||||
return emac_xaht_base(dev);
|
||||
}
|
||||
|
||||
/* Ethtool get_regs complex data.
|
||||
|
Reference in New Issue
Block a user