Commit 5045cb8f authored by Scott Long's avatar Scott Long
Browse files

Fix "set but not used" for the sym driver.

Sponsored by: Rubicon Communications, LLC ("Netgate")
parent d79676fb
......@@ -5461,7 +5461,7 @@ static void sym_modify_dp(hcb_p np, ccb_p cp, int ofs)
*/
static int sym_compute_residual(hcb_p np, ccb_p cp)
{
int dp_sg, dp_sgmin, resid = 0;
int dp_sg, resid = 0;
int dp_ofs = 0;
/*
......@@ -5508,7 +5508,6 @@ static int sym_compute_residual(hcb_p np, ccb_p cp)
* We are now full comfortable in the computation
* of the data residual (2's complement).
*/
dp_sgmin = SYM_CONF_MAX_SG - cp->segments;
resid = -cp->ext_ofs;
for (dp_sg = cp->ext_sg; dp_sg < SYM_CONF_MAX_SG; ++dp_sg) {
u_int tmp = scr_to_cpu(cp->phys.data[dp_sg].size);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment