staging: Remove unnecessary semicolons
authorJoe Perches <joe@perches.com>
Thu, 10 Oct 2013 23:07:59 +0000 (16:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2013 22:47:06 +0000 (15:47 -0700)
These aren't necessary after switch, if and while statements.

Also remove some unnecessary braces where these
semicolons were removed around single statement
and some unnecessary blank lines.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/adc/ad7291.c
drivers/staging/iio/cdc/ad7150.c
drivers/staging/imx-drm/imx-tve.c
drivers/staging/lustre/lustre/lvfs/lvfs_linux.c
drivers/staging/rtl8188eu/core/rtw_recv.c
drivers/staging/rtl8192e/rtl8192e/rtl_core.c

index 1dae1efe41c7e2817537087f6edb4c2eebdef330..ccaa8d6f8bc766959a6ef31d57e5c2dd89265b7a 100644 (file)
@@ -290,7 +290,7 @@ static int ad7291_read_event_value(struct iio_dev *indio_dev,
                return 0;
        default:
                return -EINVAL;
-       };
+       }
 }
 
 static int ad7291_write_event_value(struct iio_dev *indio_dev,
index f4a0341cc70c1355dcab30e6113c3cddba5a1a82..618d820eb5252c3da5812523496113b2c7ba44b7 100644 (file)
@@ -300,7 +300,7 @@ static int ad7150_read_event_value(struct iio_dev *indio_dev,
 
        default:
                return -EINVAL;
-       };
+       }
 }
 
 static int ad7150_write_event_value(struct iio_dev *indio_dev,
index 33d6525cf9960c5b4a36b2114a6f9fffc9ca7711..59dd4d560ce036ea6001707d3601153c505a22aa 100644 (file)
@@ -696,7 +696,7 @@ static int imx_tve_probe(struct platform_device *pdev)
        if (val != 0x00100000) {
                dev_err(&pdev->dev, "configuration register default value indicates this is not a TVEv2\n");
                return -ENODEV;
-       };
+       }
 
        /* disable cable detection for VGA mode */
        ret = regmap_write(tve->regmap, TVE_CD_CONT_REG, 0);
index f6268dcec5421292b42b611fd9d35125948ac7aa..ea377155078853db14711d5ae526401f94854f89 100644 (file)
@@ -282,7 +282,7 @@ __s64 lprocfs_read_helper(struct lprocfs_counter *lc,
                break;
        default:
                break;
-       };
+       }
 
        return ret;
 }
index ba8e53463d10140f1d2db27e9c44a20adc3c36e3..9f0f30f7069a92be71028f670c0aff9173b742be 100644 (file)
@@ -1586,7 +1586,7 @@ _func_enter_;
 
                pfhdr->attrib.icv_len = pnfhdr->attrib.icv_len;
                plist = get_next(plist);
-       };
+       }
 
        /* free the defrag_q queue and return the prframe */
        rtw_free_recvframe_queue(defrag_q, pfree_recv_queue);
index 7d322f3980e157ef83abf9f6b48663e3d9f2af46..b01f6f5c2c44bb6964dbc3b969855069676f0816 100644 (file)
@@ -1888,9 +1888,8 @@ void rtl8192_hard_data_xmit(struct sk_buff *skb, struct net_device *dev,
        memcpy((unsigned char *)(skb->cb), &dev, sizeof(dev));
        skb_push(skb, priv->rtllib->tx_headroom);
        ret = rtl8192_tx(dev, skb);
-       if (ret != 0) {
+       if (ret != 0)
                kfree_skb(skb);
-       };
 
        if (queue_index != MGNT_QUEUE) {
                priv->rtllib->stats.tx_bytes += (skb->len -
@@ -1898,7 +1897,6 @@ void rtl8192_hard_data_xmit(struct sk_buff *skb, struct net_device *dev,
                priv->rtllib->stats.tx_packets++;
        }
 
-
        return;
 }
 
@@ -1930,15 +1928,11 @@ int rtl8192_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
                tcb_desc->bTxEnableFwCalcDur = 1;
                skb_push(skb, priv->rtllib->tx_headroom);
                ret = rtl8192_tx(dev, skb);
-               if (ret != 0) {
+               if (ret != 0)
                        kfree_skb(skb);
-               };
        }
 
-
-
        return ret;
-
 }
 
 static void rtl8192_tx_isr(struct net_device *dev, int prio)