[PATCH] usb:storage:Remove unnecessary braces

2 views
Skip to first unread message

Jianuo Kuang

unread,
Nov 16, 2023, 4:41:05 AM11/16/23
to hust-os-ker...@googlegroups.com, Jianuo Kuang
Braces {} are not necessary for a single statement blocks,
so two braces are removed.

Signed-off-by: Jianuo Kuang <u2021...@hust.edu.cn>
---
drivers/usb/storage/transport.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/usb/storage/transport.c b/drivers/usb/storage/transport.c
index 7449e379077a..50d047c28197 100644
--- a/drivers/usb/storage/transport.c
+++ b/drivers/usb/storage/transport.c
@@ -977,14 +977,12 @@ int usb_stor_CB_transport(struct scsi_cmnd *srb, struct us_data *us)
result);

/* if we stalled the command, it means command failed */
- if (result == USB_STOR_XFER_STALLED) {
+ if (result == USB_STOR_XFER_STALLED)
return USB_STOR_TRANSPORT_FAILED;
- }

/* Uh oh... serious problem here */
- if (result != USB_STOR_XFER_GOOD) {
+ if (result != USB_STOR_XFER_GOOD)
return USB_STOR_TRANSPORT_ERROR;
- }

/* DATA STAGE */
/* transfer the data payload for this command, if one exists*/
--
2.25.1

ktest...@126.com

unread,
Nov 16, 2023, 4:54:49 AM11/16/23
to u2021...@hust.edu.cn, u2021...@hust.edu.cn, hust-os-ker...@googlegroups.com
Hi, Jianuo Kuang
This email is automatically replied by KTestRobot(version 1.0). Please do not reply to this email.
If you have any questions or suggestions about KTestRobot, please contact Lishuchang <U2020...@hust.edu.cn>

--- Changed Paths ---
drivers/usb/storage/transport.c

--- Log Message ---
Braces {} are not necessary for a single statement blocks,
so two braces are removed.

--- Test Result ---
*** CheckPatch PASS ***
*** ApplyTolinux-next PASS ***
*** ApplyTomainline PASS ***
*** BuildCheck PASS ***
*** CheckCocci PASS ***
*** CheckCppcheck PASS ***

--
KTestRobot(version 1.0)

Reply all
Reply to author
Forward
0 new messages