All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Staging: Remove unnecessary goto.
@ 2016-02-29 11:08 Sandhya Bankar
  2016-02-29 11:11 ` [PATCH 1/5] Staging: media: Remove Unnecessary goto Sandhya Bankar
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Sandhya Bankar @ 2016-02-29 11:08 UTC (permalink / raw)
  To: outreachy-kernel

Remove unnecessary goto.
Semantic patch:
@r@
expression ret;
identifier f,l;
statement S;
position p;
@@

(
if (<+...f(...)...+>) S
|
if@p (...) return ret;
return ret;
|
if@p (...) goto l;
l:
return ret;
)

Sandhya Bankar (5):
  Staging: media: Remove Unnecessary goto.
  Staging: iio: ade7854: Remove unnecessary goto.
  Staging: iio: ade7758_core: Remove unnecessary goto.
  Staging: iio: ade7754: Remove unnecessary goto.
  Staging: gdm72xx: Remove unnecessary goto.

 drivers/staging/gdm72xx/usb_boot.c            | 3 +--
 drivers/staging/iio/meter/ade7754.c           | 2 --
 drivers/staging/iio/meter/ade7758_core.c      | 2 --
 drivers/staging/iio/meter/ade7854.c           | 2 --
 drivers/staging/media/bcm2048/radio-bcm2048.c | 2 --
 5 files changed, 1 insertion(+), 10 deletions(-)

-- 
1.8.3.4



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-03-01 11:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-29 11:08 [PATCH 0/5] Staging: Remove unnecessary goto Sandhya Bankar
2016-02-29 11:11 ` [PATCH 1/5] Staging: media: Remove Unnecessary goto Sandhya Bankar
2016-03-01 11:37   ` [Outreachy kernel] " Daniel Baluta
2016-02-29 11:16 ` [PATCH 2/5] Staging: iio: ade7854: Remove unnecessary goto Sandhya Bankar
2016-03-01 11:35   ` [Outreachy kernel] " Daniel Baluta
2016-02-29 11:23 ` [PATCH 3/5] Staging: iio: ade7758_core: " Sandhya Bankar
2016-03-01 11:33   ` [Outreachy kernel] " Daniel Baluta
2016-02-29 11:26 ` [PATCH 4/5] Staging: iio: ade7754: " Sandhya Bankar
2016-03-01 11:36   ` [Outreachy kernel] " Daniel Baluta
2016-02-29 11:27 ` [PATCH 5/5] Staging: gdm72xx: " Sandhya Bankar
2016-02-29 19:11 ` [Outreachy kernel] [PATCH 0/5] Staging: " Julia Lawall
2016-02-29 19:30   ` sandhya bankar
2016-02-29 21:35     ` Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.