Skip to contentSkip to conversation

staging: rtl8712: Align parenthesis in usb_ops_linux.c

PATCH In review Dorine Tipo 2 participants 2 messages Aug 28, 2024 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging: rtl8712: Align parenthesis in usb_ops_linux.c

Fix the parenthesis alignment in r8712_read_port() function to match the opening parenthesis.
This improves code readability and adheres to the kernel coding style.

---
Changelog:
V2: Edited the subject line to fix a typo and make it more unique as
suggested by Philipp.
Edited the description to include the reason for the change.

 drivers/staging/rtl8712/usb_ops_linux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8712/usb_ops_linux.c +1 -1
index 0a3451cdc8a1..4a34824830e3 100644
@@ -221,7 +221,7 @@ static void r8712_usb_read_port_complete(struct urb *purb)
 			fallthrough;
 		case -EPROTO:
 			r8712_read_port(padapter, precvpriv->ff_hwaddr, 0,
-				  (unsigned char *)precvbuf);
+					(unsigned char *)precvbuf);
 			break;
 		case -EINPROGRESS:
 			netdev_err(padapter->pnetdev, "ERROR: URB IS IN PROGRESS!\n");

--
2.25.1

Tested-by on v2 1/1
#1 lore raw
Quoted 28 lines · Dorine Tipo

Fix the parenthesis alignment in r8712_read_port() function to match the opening parenthesis.
This improves code readability and adheres to the kernel coding style.

---
Changelog:
V2: Edited the subject line to fix a typo and make it more unique as
suggested by Philipp.
Edited the description to include the reason for the change.

  drivers/staging/rtl8712/usb_ops_linux.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8712/usb_ops_linux.c +1 -2
index 0a3451cdc8a1..4a34824830e3 100644
@@ -221,7 +221,7 @@ static void r8712_usb_read_port_complete(struct urb *purb)
  			fallthrough;
  		case -EPROTO:
  			r8712_read_port(padapter, precvpriv->ff_hwaddr, 0,
-				  (unsigned char *)precvbuf);
+					(unsigned char *)precvbuf);
  			break;
  		case -EINPROGRESS:
  			netdev_err(padapter->pnetdev, "ERROR: URB IS IN PROGRESS!\n");
--
Quoted 2 lines

2.25.1