aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/atm
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-02-23 07:22:52 -0500
committerDavid S. Miller <davem@davemloft.net>2018-02-23 12:42:26 -0500
commit3c69f79233e7c8424abb38bbd0ae9fd9010014af (patch)
treee8b0aa7a8921663757a42c19b4eaa937d7292c1b /drivers/atm
parent79a5b9727a1cceacd49921b78425ebda91836bd6 (diff)
atm: idt77252: remove redundant bit-wise or'ing of zero
Zero is being bit-wise or'd in a calculation twice; these are redundant and can be removed. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm')
-rw-r--r--drivers/atm/idt77252.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c
index 0277f36be85b..6e737142ceaa 100644
--- a/drivers/atm/idt77252.c
+++ b/drivers/atm/idt77252.c
@@ -3173,14 +3173,10 @@ static void init_sram(struct idt77252_dev *card)
3173 (u32) 0xffffffff); 3173 (u32) 0xffffffff);
3174 } 3174 }
3175 3175
3176 writel((SAR_FBQ0_LOW << 28) | 0x00000000 | 0x00000000 | 3176 writel((SAR_FBQ0_LOW << 28) | (SAR_FB_SIZE_0 / 48), SAR_REG_FBQS0);
3177 (SAR_FB_SIZE_0 / 48), SAR_REG_FBQS0); 3177 writel((SAR_FBQ1_LOW << 28) | (SAR_FB_SIZE_1 / 48), SAR_REG_FBQS1);
3178 writel((SAR_FBQ1_LOW << 28) | 0x00000000 | 0x00000000 | 3178 writel((SAR_FBQ2_LOW << 28) | (SAR_FB_SIZE_2 / 48), SAR_REG_FBQS2);
3179 (SAR_FB_SIZE_1 / 48), SAR_REG_FBQS1); 3179 writel((SAR_FBQ3_LOW << 28) | (SAR_FB_SIZE_3 / 48), SAR_REG_FBQS3);
3180 writel((SAR_FBQ2_LOW << 28) | 0x00000000 | 0x00000000 |
3181 (SAR_FB_SIZE_2 / 48), SAR_REG_FBQS2);
3182 writel((SAR_FBQ3_LOW << 28) | 0x00000000 | 0x00000000 |
3183 (SAR_FB_SIZE_3 / 48), SAR_REG_FBQS3);
3184 3180
3185 /* Initialize rate table */ 3181 /* Initialize rate table */
3186 for (i = 0; i < 256; i++) { 3182 for (i = 0; i < 256; i++) {