diff options
Diffstat (limited to 'drivers/atm/zatm.c')
-rw-r--r-- | drivers/atm/zatm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/atm/zatm.c b/drivers/atm/zatm.c index 020a87a476c8..58583c6ac5be 100644 --- a/drivers/atm/zatm.c +++ b/drivers/atm/zatm.c | |||
@@ -915,7 +915,7 @@ static int open_tx_first(struct atm_vcc *vcc) | |||
915 | unsigned long flags; | 915 | unsigned long flags; |
916 | u32 *loop; | 916 | u32 *loop; |
917 | unsigned short chan; | 917 | unsigned short chan; |
918 | int pcr,unlimited; | 918 | int unlimited; |
919 | 919 | ||
920 | DPRINTK("open_tx_first\n"); | 920 | DPRINTK("open_tx_first\n"); |
921 | zatm_dev = ZATM_DEV(vcc->dev); | 921 | zatm_dev = ZATM_DEV(vcc->dev); |
@@ -936,6 +936,8 @@ static int open_tx_first(struct atm_vcc *vcc) | |||
936 | vcc->qos.txtp.max_pcr >= ATM_OC3_PCR); | 936 | vcc->qos.txtp.max_pcr >= ATM_OC3_PCR); |
937 | if (unlimited && zatm_dev->ubr != -1) zatm_vcc->shaper = zatm_dev->ubr; | 937 | if (unlimited && zatm_dev->ubr != -1) zatm_vcc->shaper = zatm_dev->ubr; |
938 | else { | 938 | else { |
939 | int uninitialized_var(pcr); | ||
940 | |||
939 | if (unlimited) vcc->qos.txtp.max_sdu = ATM_MAX_AAL5_PDU; | 941 | if (unlimited) vcc->qos.txtp.max_sdu = ATM_MAX_AAL5_PDU; |
940 | if ((zatm_vcc->shaper = alloc_shaper(vcc->dev,&pcr, | 942 | if ((zatm_vcc->shaper = alloc_shaper(vcc->dev,&pcr, |
941 | vcc->qos.txtp.min_pcr,vcc->qos.txtp.max_pcr,unlimited)) | 943 | vcc->qos.txtp.min_pcr,vcc->qos.txtp.max_pcr,unlimited)) |