Commit f9ef6028 authored by Julia Lawall's avatar Julia Lawall Committed by John W. Linville

drivers/net/wireless: correct check on CCS_START_NETWORK

CCS_START_NETWORK is declared in drivers/net/wireless/rayctl.h with the
comment Values for cmd.  status is previously compared to
CCS_COMMAND_COMPLETE, which is declared in the same file with the comment
Values for buffer_status.  Finally, it is possible at this point that cmd
is CCS_START_NETWORK, because it is compared to that value in an enclosing
switch that has CCS_START_NETWORK as one of two case labels around this code.
Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 3e8b4d00
...@@ -2074,7 +2074,7 @@ static irqreturn_t ray_interrupt(int irq, void *dev_id) ...@@ -2074,7 +2074,7 @@ static irqreturn_t ray_interrupt(int irq, void *dev_id)
del_timer(&local->timer); del_timer(&local->timer);
local->timer.expires = jiffies + HZ * 5; local->timer.expires = jiffies + HZ * 5;
local->timer.data = (long)local; local->timer.data = (long)local;
if (status == CCS_START_NETWORK) { if (cmd == CCS_START_NETWORK) {
DEBUG(0, DEBUG(0,
"ray_cs interrupt network \"%s\" start failed\n", "ray_cs interrupt network \"%s\" start failed\n",
local->sparm.b4.a_current_ess_id); local->sparm.b4.a_current_ess_id);
......
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