Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50c1126e authored by Bill Pemberton's avatar Bill Pemberton Committed by Jesse Barnes
Browse files

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: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 991f7395
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -754,7 +754,7 @@ void aer_isr(struct work_struct *work)
{
{
	struct aer_rpc *rpc = container_of(work, struct aer_rpc, dpc_handler);
	struct aer_rpc *rpc = container_of(work, struct aer_rpc, dpc_handler);
	struct pcie_device *p_device = rpc->rpd;
	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);
	mutex_lock(&rpc->rpc_mutex);
	while (get_e_source(rpc, &e_src))
	while (get_e_source(rpc, &e_src))