Skip to contentSkip to conversation

staging: gpib: Clean-up commented-out code

PATCH In review Adam Quandour 2 participants 4 messages Nov 17, 2025 – Nov 24, 2025 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: gpib: Clean-up commented-out code

Remove unused code.

---
 drivers/staging/gpib/cb7210/cb7210.c | 12 ------------
 1 file changed, 12 deletions(-)
drivers/staging/gpib/cb7210/cb7210.c +0 -12
index 3e2397898a9b..24c61b151071 100644
@@ -1290,26 +1290,14 @@ static void cb_gpib_release(struct pcmcia_device *link)
 
 static int cb_gpib_suspend(struct pcmcia_device *link)
 {
-	//struct local_info *info = link->priv;
-	//struct struct gpib_board *dev = info->dev;
-
 	if (link->open)
 		dev_warn(&link->dev, "Device still open\n");
-	//netif_device_detach(dev);
 
 	return 0;
 }
 
 static int cb_gpib_resume(struct pcmcia_device *link)
 {
-	//struct local_info *info = link->priv;
-	//struct struct gpib_board *dev = info->dev;
-
-	/*if (link->open) {
-	 *	ni_gpib_probe(dev);	/ really?
-	 *	//netif_device_attach(dev);
-	 *
-	 */
 	return cb_gpib_config(link);
 }
 
Signature · 1 line
2.51.0
maintainer
#1 lore raw
Quoted 41 lines · Adam Quandour

Remove unused code.

---
 drivers/staging/gpib/cb7210/cb7210.c | 12 ------------
 1 file changed, 12 deletions(-)
drivers/staging/gpib/cb7210/cb7210.c +0 -12
index 3e2397898a9b..24c61b151071 100644
@@ -1290,26 +1290,14 @@ static void cb_gpib_release(struct pcmcia_device *link)
 
 static int cb_gpib_suspend(struct pcmcia_device *link)
 {
-	//struct local_info *info = link->priv;
-	//struct struct gpib_board *dev = info->dev;
-
 	if (link->open)
 		dev_warn(&link->dev, "Device still open\n");
-	//netif_device_detach(dev);
 
 	return 0;
 }
 
 static int cb_gpib_resume(struct pcmcia_device *link)
 {
-	//struct local_info *info = link->priv;
-	//struct struct gpib_board *dev = info->dev;
-
-	/*if (link->open) {
-	 *	ni_gpib_probe(dev);	/ really?
-	 *	//netif_device_attach(dev);
-	 *
-	 */
 	return cb_gpib_config(link);
 }
 
Signature · 1 line
2.51.0

The code has now moved directories :(

author
#2 lore raw

Oh, I will make a new patch then. It is in the same place in the master branch. I should make the patch from another branch, right?

Quoted 45 lines · Greg KH
Quoted 39 lines · Adam Quandour

Remove unused code.

---
 drivers/staging/gpib/cb7210/cb7210.c | 12 ------------
 1 file changed, 12 deletions(-)
drivers/staging/gpib/cb7210/cb7210.c +0 -13
index 3e2397898a9b..24c61b151071 100644
@@ -1290,26 +1290,14 @@ static void cb_gpib_release(struct pcmcia_device *link)
 
 static int cb_gpib_suspend(struct pcmcia_device *link)
 {
-     //struct local_info *info = link->priv;
-     //struct struct gpib_board *dev = info->dev;
-
      if (link->open)
              dev_warn(&link->dev, "Device still open\n");
-     //netif_device_detach(dev);
 
      return 0;
 }
 
 static int cb_gpib_resume(struct pcmcia_device *link)
 {
-     //struct local_info *info = link->priv;
-     //struct struct gpib_board *dev = info->dev;
-
-     /*if (link->open) {
-      *      ni_gpib_probe(dev);     / really?
-      *      //netif_device_attach(dev);
-      *
-      */
      return cb_gpib_config(link);
 }
 
--
Quoted 2 lines

2.51.0

The code has now moved directories :(

maintainer
#3 lore raw
Quoted 2 lines · Adam

Oh, I will make a new patch then. It is in the same place in the master branch. I should make the patch from another branch, right?

Look at the staging-testing branch now.

thanks,

greg k-h