diff options
Diffstat (limited to 'drivers/atm/eni.c')
-rw-r--r-- | drivers/atm/eni.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/atm/eni.c b/drivers/atm/eni.c index 41b2204ebc6e..5503bfc8e132 100644 --- a/drivers/atm/eni.c +++ b/drivers/atm/eni.c | |||
@@ -1270,7 +1270,7 @@ static int comp_tx(struct eni_dev *eni_dev,int *pcr,int reserved,int *pre, | |||
1270 | if (*pre < 3) (*pre)++; /* else fail later */ | 1270 | if (*pre < 3) (*pre)++; /* else fail later */ |
1271 | div = pre_div[*pre]*-*pcr; | 1271 | div = pre_div[*pre]*-*pcr; |
1272 | DPRINTK("max div %d\n",div); | 1272 | DPRINTK("max div %d\n",div); |
1273 | *res = (TS_CLOCK+div-1)/div-1; | 1273 | *res = DIV_ROUND_UP(TS_CLOCK, div)-1; |
1274 | } | 1274 | } |
1275 | if (*res < 0) *res = 0; | 1275 | if (*res < 0) *res = 0; |
1276 | if (*res > MID_SEG_MAX_RATE) *res = MID_SEG_MAX_RATE; | 1276 | if (*res > MID_SEG_MAX_RATE) *res = MID_SEG_MAX_RATE; |