Thread (46 messages) 46 messages, 8 authors, 2021-04-26

RE: [PATCH net 2/9] r8152: reset flow control patch when linking on for RTL8153B

From: Hayes Wang <hidden>
Date: 2020-01-21 13:19:35
Also in: linux-usb, lkml

Joe Perches [mailto:joe@perches.com]
Sent: Tuesday, January 21, 2020 9:01 PM
To: David Miller; Hayes Wang
[...]
quoted
quoted
 static int rtl8153_enable(struct r8152 *tp)
 {
+     u32 ocp_data;
      if (test_bit(RTL8152_UNPLUG, &tp->flags))
              return -ENODEV;
Please put an empty line after the local variable declarations.
Local scoping is generally better.

Perhaps declare ocp_data inside the if branch
where it's used.
OK. I would move it.

Best Regards,
Hayes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help