[PATCH v3 3/5] can: gs_usb.c: use reverse xmas tree declaration
From: Alexander Kozhinov
Date: Tue Oct 08 2024 - 15:37:13 EST
This change implements request: Move this declaration up (c.f. the Reverse christmas tree declarations).
Signed-off-by: Alexander Kozhinov <ak.alexander.kozhinov@xxxxxxxxx>
---
drivers/net/can/usb/gs_usb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/can/usb/gs_usb.c b/drivers/net/can/usb/gs_usb.c
index e6511af5f692..a88448dbc6af 100644
--- a/drivers/net/can/usb/gs_usb.c
+++ b/drivers/net/can/usb/gs_usb.c
@@ -1412,6 +1412,8 @@ static int gs_usb_probe(struct usb_interface *intf,
const struct usb_device_id *id)
{
struct usb_device *udev = interface_to_usbdev(intf);
+ struct usb_endpoint_descriptor *ep_in, *ep_out;
+ struct usb_host_interface *host_iface;
struct gs_host_frame *hf;
struct gs_usb *parent;
struct gs_host_config hconf = {
@@ -1420,8 +1422,6 @@ static int gs_usb_probe(struct usb_interface *intf,
struct gs_device_config dconf;
unsigned int icount, i;
int rc;
- struct usb_host_interface *host_iface;
- struct usb_endpoint_descriptor *ep_in, *ep_out;
host_iface = intf->cur_altsetting;
--
2.43.0