提交 50c1126e 编写于 作者: B Bill Pemberton 提交者: Jesse Barnes

PCI: aerdrv: fix uninitialized variable warning

quiet the warning about use of uninitialized e_src in
aer_isr()  e_src is initialized by get_e_source()
Signed-off-by: NBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
上级 991f7395
......@@ -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))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册