mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 10:15:13 +07:00
staging: most: hdm-usb: remove redundant conditions
This patch removes the duplication of the expression (urb->status == -ENOENT || urb->status == -ECONNRESET). 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
879c93fefd
commit
4246501e23
@ -410,9 +410,7 @@ static void hdm_write_completion(struct urb *urb)
|
||||
return;
|
||||
}
|
||||
|
||||
if (unlikely(urb->status && !(urb->status == -ENOENT ||
|
||||
urb->status == -ECONNRESET ||
|
||||
urb->status == -ESHUTDOWN))) {
|
||||
if (unlikely(urb->status && urb->status != -ESHUTDOWN)) {
|
||||
mbo->processed_length = 0;
|
||||
switch (urb->status) {
|
||||
case -EPIPE:
|
||||
@ -575,9 +573,7 @@ static void hdm_read_completion(struct urb *urb)
|
||||
return;
|
||||
}
|
||||
|
||||
if (unlikely(urb->status && !(urb->status == -ENOENT ||
|
||||
urb->status == -ECONNRESET ||
|
||||
urb->status == -ESHUTDOWN))) {
|
||||
if (unlikely(urb->status && urb->status != -ESHUTDOWN)) {
|
||||
mbo->processed_length = 0;
|
||||
switch (urb->status) {
|
||||
case -EPIPE:
|
||||
|
Loading…
Reference in New Issue
Block a user