mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 23:15:24 +07:00
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");
|
||||
mdev->is_channel_healthy[channel] = false;
|
||||
spin_unlock_irqrestore(lock, flags);
|
||||
mbo->status = MBO_E_INVAL;
|
||||
mdev->clear_work[channel].pipe = urb->pipe;
|
||||
schedule_work(&mdev->clear_work[channel].ws);
|
||||
return;
|
||||
@ -570,7 +569,6 @@ static void hdm_read_completion(struct urb *urb)
|
||||
dev_warn(dev, "Broken IN pipe detected\n");
|
||||
mdev->is_channel_healthy[channel] = false;
|
||||
spin_unlock_irqrestore(lock, flags);
|
||||
mbo->status = MBO_E_INVAL;
|
||||
mdev->clear_work[channel].pipe = urb->pipe;
|
||||
schedule_work(&mdev->clear_work[channel].ws);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user