Skip to content

Commit 3c69f79

Browse files
Colin Ian Kingdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 79a5b97 commit 3c69f79

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

drivers/atm/idt77252.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3173,14 +3173,10 @@ static void init_sram(struct idt77252_dev *card)
31733173
(u32) 0xffffffff);
31743174
}
31753175

3176-
writel((SAR_FBQ0_LOW << 28) | 0x00000000 | 0x00000000 |
3177-
(SAR_FB_SIZE_0 / 48), SAR_REG_FBQS0);
3178-
writel((SAR_FBQ1_LOW << 28) | 0x00000000 | 0x00000000 |
3179-
(SAR_FB_SIZE_1 / 48), SAR_REG_FBQS1);
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);
3176+
writel((SAR_FBQ0_LOW << 28) | (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_FBQ2_LOW << 28) | (SAR_FB_SIZE_2 / 48), SAR_REG_FBQS2);
3179+
writel((SAR_FBQ3_LOW << 28) | (SAR_FB_SIZE_3 / 48), SAR_REG_FBQS3);
31843180

31853181
/* Initialize rate table */
31863182
for (i = 0; i < 256; i++) {

0 commit comments

Comments
 (0)