diff options
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/ambassador.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/atm/ambassador.c b/drivers/atm/ambassador.c index 59651abfa4f8..b34b3829f6a9 100644 --- a/drivers/atm/ambassador.c +++ b/drivers/atm/ambassador.c | |||
@@ -1040,7 +1040,7 @@ static int amb_open (struct atm_vcc * atm_vcc) | |||
1040 | struct atm_qos * qos; | 1040 | struct atm_qos * qos; |
1041 | struct atm_trafprm * txtp; | 1041 | struct atm_trafprm * txtp; |
1042 | struct atm_trafprm * rxtp; | 1042 | struct atm_trafprm * rxtp; |
1043 | u16 tx_rate_bits; | 1043 | u16 tx_rate_bits = -1; // hush gcc |
1044 | u16 tx_vc_bits = -1; // hush gcc | 1044 | u16 tx_vc_bits = -1; // hush gcc |
1045 | u16 tx_frame_bits = -1; // hush gcc | 1045 | u16 tx_frame_bits = -1; // hush gcc |
1046 | 1046 | ||
@@ -1096,6 +1096,8 @@ static int amb_open (struct atm_vcc * atm_vcc) | |||
1096 | r = round_up; | 1096 | r = round_up; |
1097 | } | 1097 | } |
1098 | error = make_rate (pcr, r, &tx_rate_bits, NULL); | 1098 | error = make_rate (pcr, r, &tx_rate_bits, NULL); |
1099 | if (error) | ||
1100 | return error; | ||
1099 | tx_vc_bits = TX_UBR_CAPPED; | 1101 | tx_vc_bits = TX_UBR_CAPPED; |
1100 | tx_frame_bits = TX_FRAME_CAPPED; | 1102 | tx_frame_bits = TX_FRAME_CAPPED; |
1101 | } | 1103 | } |