net: usb: pegasus: Remove duplicated include from pegasus.c
Subsystems (6)
PATCH 1/1 net: usb: pegasus: Remove duplicated include from pegasus.c
From: Qiheng Lin <[email protected]>
Remove duplicated include.
Reported-by Hulk Robot <[email protected]>
Signed-off-by Qiheng Lin <[email protected]>
--- drivers/net/usb/pegasus.c | 2 -- 1 file changed, 2 deletions(-)
drivers/net/usb/pegasus.c +0 -2
@@ -65,7 +65,6 @@ static struct usb_eth_dev usb_dev_id[] = { {.name = pn, .vendor = vid, .device = pid, .private = flags}, #define PEGASUS_DEV_CLASS(pn, vid, pid, dclass, flags) \ PEGASUS_DEV(pn, vid, pid, flags) -#include "pegasus.h" #undef PEGASUS_DEV #undef PEGASUS_DEV_CLASS {NULL, 0, 0, 0},
@@ -84,7 +83,6 @@ static struct usb_device_id pegasus_ids[] = {#define PEGASUS_DEV_CLASS (pn, vid, pid, dclass, flags) \ {.match_flags = (USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_DEV_CLASS), \ .idVendor = vid, .idProduct = pid, .bDeviceClass = dclass}, -#include "pegasus.h" #undef PEGASUS_DEV#undef PEGASUS_DEV_CLASS {},
Quoted 24 lines · Qiheng Lin
From: Qiheng Lin <[email protected]>
Remove duplicated include.
Reported-by Hulk Robot <[email protected]>Signed-off-by Qiheng Lin <[email protected]>--- drivers/net/usb/pegasus.c | 2 -- 1 file changed, 2 deletions(-)drivers/net/usb/pegasus.c +0
-1@@ -65,7 +65,6 @@ static struct usb_eth_dev usb_dev_id[] = { {.name = pn, .vendor = vid, .device = pid, .private = flags}, #define PEGASUS_DEV_CLASS(pn, vid, pid, dclass, flags) \ PEGASUS_DEV(pn, vid, pid, flags) -#include "pegasus.h" #undef PEGASUS_DEV #undef PEGASUS_DEV_CLASS {NULL, 0, 0, 0},
drivers/net/usb/pegasus.c static struct usb_device_id pegasus_ids[] = { · line 88
Quoted 7 lines
drivers/net/usb/pegasus.c +0
-1@@ -84,7 +83,6 @@ static struct usb_device_id pegasus_ids[] = {#define PEGASUS_DEV_CLASS (pn, vid, pid, dclass, flags) \ {.match_flags = (USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_DEV_CLASS), \ .idVendor = vid, .idProduct = pid, .bDeviceClass = dclass}, -#include "pegasus.h" #undef PEGASUS_DEV#undef PEGASUS_DEV_CLASS {},
Did you build and test this code now with this change?
I think you broke this driver badly now :(
Please think about _why_ the code would have been written this way in the first place, it is a bit odd, right?
netdev maintainers, consider this a NAK.
thanks,
greg k-h
Petko Manolov
maintainerQuoted 3 lines · Qiheng Lin
From: Qiheng Lin <[email protected]>
Remove duplicated include.
It is not duplicated so do not remove it. Go ahead and look carefully at the code, please.
Petko
Quoted 28 lines
Reported-by Hulk Robot <[email protected]>Signed-off-by Qiheng Lin <[email protected]>--- drivers/net/usb/pegasus.c | 2 -- 1 file changed, 2 deletions(-)drivers/net/usb/pegasus.c +0
-2@@ -65,7 +65,6 @@ static struct usb_eth_dev usb_dev_id[] = { {.name = pn, .vendor = vid, .device = pid, .private = flags}, #define PEGASUS_DEV_CLASS(pn, vid, pid, dclass, flags) \ PEGASUS_DEV(pn, vid, pid, flags) -#include "pegasus.h" #undef PEGASUS_DEV #undef PEGASUS_DEV_CLASS {NULL, 0, 0, 0},@@ -84,7 +83,6 @@ static struct usb_device_id pegasus_ids[] = {#define PEGASUS_DEV_CLASS (pn, vid, pid, dclass, flags) \ {.match_flags = (USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_DEV_CLASS), \ .idVendor = vid, .idProduct = pid, .bDeviceClass = dclass}, -#include "pegasus.h" #undef PEGASUS_DEV#undef PEGASUS_DEV_CLASS {},