Skip to contentSkip to conversation

Drivers: isdn: Drop unnecessary continue

PATCH In review Shraddha Barke 2 participants 2 messages Jul 28, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Drivers: isdn: Drop unnecessary continue

The semantic patch used to make this change is :

@@
@@
for (...;...;...) {
...

  if (...) {
    ...

- continue;
}
}

---
 drivers/isdn/hardware/mISDN/hfcsusb.c | 1 -
 1 file changed, 1 deletion(-)
drivers/isdn/hardware/mISDN/hfcsusb.c +0 -1
index 114f3bc..34e4b6c 100644
@@ -1923,7 +1923,6 @@ hfcsusb_probe(struct usb_interface *intf, const struct usb_device_id *id)
 		    (le16_to_cpu(dev->descriptor.idProduct)
 		     == hfcsusb_idtab[i].idProduct)) {
 			vend_idx = i;
-			continue;
 		}
 	}
 
Signature · 1 line
2.1.0
#1 lore raw
Quoted 22 lines · Shraddha Barke

The semantic patch used to make this change is :

@@
@@
for (...;...;...) {
...

  if (...) {
    ...

- continue;
}
}

---
 drivers/isdn/hardware/mISDN/hfcsusb.c | 1 -
 1 file changed, 1 deletion(-)
drivers/isdn/hardware/mISDN/hfcsusb.c +0 -0
index 114f3bc..34e4b6c 100644

drivers/isdn/hardware/mISDN/hfcsusb.c hfcsusb_probe(struct usb_interface *intf, const struct usb_device_id *id) · line 1926

Quoted 4 lines
drivers/isdn/hardware/mISDN/hfcsusb.c +0 -1
@@ -1923,7 +1923,6 @@ hfcsusb_probe(struct usb_interface *intf, const struct usb_device_id *id)
 		    (le16_to_cpu(dev->descriptor.idProduct)
 		     == hfcsusb_idtab[i].idProduct)) {
 			vend_idx = i;
-			continue;

Now there is only one statement in the branch, so the {} should go as well.

julia

Quoted 7 lines
drivers/isdn/hardware/mISDN/hfcsusb.c +0 -1
 		}
 	}
 
--

2.1.0