Skip to content

Commit

Permalink
PCI: aerdrv: fix uninitialized variable warning
Browse files Browse the repository at this point in the history
quiet the warning about use of uninitialized e_src in
aer_isr()  e_src is initialized by get_e_source()

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
  • Loading branch information
Bill Pemberton authored and Jesse Barnes committed Oct 15, 2010
1 parent 991f739 commit 50c1126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/pcie/aer/aerdrv_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ void aer_isr(struct work_struct *work)
{
struct aer_rpc *rpc = container_of(work, struct aer_rpc, dpc_handler);
struct pcie_device *p_device = rpc->rpd;
struct aer_err_source e_src;
struct aer_err_source uninitialized_var(e_src);

mutex_lock(&rpc->rpc_mutex);
while (get_e_source(rpc, &e_src))
Expand Down

0 comments on commit 50c1126

Please sign in to comment.