mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-16 01:24:08 +08:00
staging: most: hdm-usb: simplify initialization of mbo->status.
This patch simplifies the code that initializes mbo->status. 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
4246501e23
commit
cf05918370
@ -596,15 +596,11 @@ static void hdm_read_completion(struct urb *urb)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
mbo->processed_length = urb->actual_length;
|
mbo->processed_length = urb->actual_length;
|
||||||
if (!mdev->padding_active[channel]) {
|
mbo->status = MBO_SUCCESS;
|
||||||
mbo->status = MBO_SUCCESS;
|
if (mdev->padding_active[channel] &&
|
||||||
} else {
|
hdm_remove_padding(mdev, channel, mbo)) {
|
||||||
if (hdm_remove_padding(mdev, channel, mbo)) {
|
mbo->processed_length = 0;
|
||||||
mbo->processed_length = 0;
|
mbo->status = MBO_E_INVAL;
|
||||||
mbo->status = MBO_E_INVAL;
|
|
||||||
} else {
|
|
||||||
mbo->status = MBO_SUCCESS;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
spin_lock_irqsave(&mdev->anchor_list_lock[channel], flags);
|
spin_lock_irqsave(&mdev->anchor_list_lock[channel], flags);
|
||||||
|
Loading…
Reference in New Issue
Block a user