From f8d17129540d08751e8b530a276c91cca711172b Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Wed, 16 Jul 2014 10:43:25 -0700 Subject: [PATCH] staging: comedi: das1800: checkpatch.pl cleanup (break not useful) Fix the checkpatch.pl warnings: WARNING: break is not useful after a goto or return Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das1800.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/staging/comedi/drivers/das1800.c b/drivers/staging/comedi/drivers/das1800.c index b2f8391d5de1..d89512ef7484 100644 --- a/drivers/staging/comedi/drivers/das1800.c +++ b/drivers/staging/comedi/drivers/das1800.c @@ -1301,7 +1301,6 @@ static int das1800_init_dma(struct comedi_device *dev, unsigned int dma0, dev_err(dev->class_dev, "dma 5,6 / 6,7 / or 7,5\n"); return -EINVAL; - break; } if (request_dma(dma0, dev->driver->driver_name)) { dev_err(dev->class_dev, @@ -1360,7 +1359,6 @@ static int das1800_probe(struct comedi_device *dev) printk (" Board model (probed, not recommended): das-1800st-da series\n"); return das1801st; - break; case 0x4: if (board == das1802hr_da || board == das1702hr_da) { dev_dbg(dev->class_dev, "Board model: %s\n", @@ -1370,7 +1368,6 @@ static int das1800_probe(struct comedi_device *dev) printk (" Board model (probed, not recommended): das-1802hr-da\n"); return das1802hr; - break; case 0x5: if (board == das1801ao || board == das1802ao || board == das1701ao || board == das1702ao) { @@ -1381,7 +1378,6 @@ static int das1800_probe(struct comedi_device *dev) printk (" Board model (probed, not recommended): das-1800ao series\n"); return das1801ao; - break; case 0x6: if (board == das1802hr || board == das1702hr) { dev_dbg(dev->class_dev, "Board model: %s\n", @@ -1391,7 +1387,6 @@ static int das1800_probe(struct comedi_device *dev) printk (" Board model (probed, not recommended): das-1802hr\n"); return das1802hr; - break; case 0x7: if (board == das1801st || board == das1802st || board == das1701st || board == das1702st) { @@ -1402,7 +1397,6 @@ static int das1800_probe(struct comedi_device *dev) printk (" Board model (probed, not recommended): das-1800st series\n"); return das1801st; - break; case 0x8: if (board == das1801hc || board == das1802hc) { dev_dbg(dev->class_dev, "Board model: %s\n", @@ -1412,13 +1406,11 @@ static int das1800_probe(struct comedi_device *dev) printk (" Board model (probed, not recommended): das-1800hc series\n"); return das1801hc; - break; default: printk (" Board model: probe returned 0x%x (unknown, please report)\n", id); return board; - break; } return -1; } -- 2.34.1