mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
drivers/*: mark variables with uninitialized_var()
Mark variables in drivers/* with uninitialized_var() if such a warning appears, and analysis proves that the var is initialized properly on all paths it is used. Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
b1734d2388
commit
a6343afb6e
8 changed files with 25 additions and 11 deletions
|
|
@ -915,7 +915,7 @@ static int open_tx_first(struct atm_vcc *vcc)
|
|||
unsigned long flags;
|
||||
u32 *loop;
|
||||
unsigned short chan;
|
||||
int pcr,unlimited;
|
||||
int unlimited;
|
||||
|
||||
DPRINTK("open_tx_first\n");
|
||||
zatm_dev = ZATM_DEV(vcc->dev);
|
||||
|
|
@ -936,6 +936,8 @@ static int open_tx_first(struct atm_vcc *vcc)
|
|||
vcc->qos.txtp.max_pcr >= ATM_OC3_PCR);
|
||||
if (unlimited && zatm_dev->ubr != -1) zatm_vcc->shaper = zatm_dev->ubr;
|
||||
else {
|
||||
int uninitialized_var(pcr);
|
||||
|
||||
if (unlimited) vcc->qos.txtp.max_sdu = ATM_MAX_AAL5_PDU;
|
||||
if ((zatm_vcc->shaper = alloc_shaper(vcc->dev,&pcr,
|
||||
vcc->qos.txtp.min_pcr,vcc->qos.txtp.max_pcr,unlimited))
|
||||
|
|
|
|||
Loading…
Reference in a new issue