mirror of https://gitee.com/openkylin/linux.git
staging: most: hdm-usb: remove unnecessary status assignment
The USB completion callbacks set the status field of an MBO object before scheduling the clear_work. This patch removes this redundant assignment as the work_struct does the same for all MBOs. Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de> Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
089612f183
commit
9736fc0434
|
@ -412,7 +412,6 @@ static void hdm_write_completion(struct urb *urb)
|
||||||
dev_warn(dev, "Broken OUT pipe detected\n");
|
dev_warn(dev, "Broken OUT pipe detected\n");
|
||||||
mdev->is_channel_healthy[channel] = false;
|
mdev->is_channel_healthy[channel] = false;
|
||||||
spin_unlock_irqrestore(lock, flags);
|
spin_unlock_irqrestore(lock, flags);
|
||||||
mbo->status = MBO_E_INVAL;
|
|
||||||
mdev->clear_work[channel].pipe = urb->pipe;
|
mdev->clear_work[channel].pipe = urb->pipe;
|
||||||
schedule_work(&mdev->clear_work[channel].ws);
|
schedule_work(&mdev->clear_work[channel].ws);
|
||||||
return;
|
return;
|
||||||
|
@ -570,7 +569,6 @@ static void hdm_read_completion(struct urb *urb)
|
||||||
dev_warn(dev, "Broken IN pipe detected\n");
|
dev_warn(dev, "Broken IN pipe detected\n");
|
||||||
mdev->is_channel_healthy[channel] = false;
|
mdev->is_channel_healthy[channel] = false;
|
||||||
spin_unlock_irqrestore(lock, flags);
|
spin_unlock_irqrestore(lock, flags);
|
||||||
mbo->status = MBO_E_INVAL;
|
|
||||||
mdev->clear_work[channel].pipe = urb->pipe;
|
mdev->clear_work[channel].pipe = urb->pipe;
|
||||||
schedule_work(&mdev->clear_work[channel].ws);
|
schedule_work(&mdev->clear_work[channel].ws);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue