Skip to content

Commit

Permalink
staging: vt6655: Remove vif check from vnt_interrupt
Browse files Browse the repository at this point in the history
A check for vif is made in vnt_interrupt_work.

There is a small chance of leaving interrupt disabled while vif
is NULL and the work hasn't been scheduled.

Signed-off-by: Malcolm Priestley <[email protected]>
CC: [email protected] # v4.2+
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Malcolm Priestley authored and gregkh committed Mar 29, 2019
1 parent 33bac91 commit cc26358
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/vt6655/device_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1137,8 +1137,7 @@ static irqreturn_t vnt_interrupt(int irq, void *arg)
{
struct vnt_private *priv = arg;

if (priv->vif)
schedule_work(&priv->interrupt_work);
schedule_work(&priv->interrupt_work);

MACvIntDisable(priv->PortOffset);

Expand Down

0 comments on commit cc26358

Please sign in to comment.