staging: pi433: fixed coding style issues
authorXiangyang Zhang <xyz.sun.ok@gmail.com>
Fri, 18 Aug 2017 03:27:40 +0000 (11:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Aug 2017 18:08:41 +0000 (11:08 -0700)
space required before the open parenthesis, open brace should be
on previous line.

Signed-off-by: Xiangyang Zhang <xyz.sun.ok@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/pi433/pi433_if.c

index 6b9b7df70f8e0b899583c2d63b61ba6089cbee2b..87053e778451c89bc17c4c921eebd03f0de250e1 100644 (file)
@@ -1125,14 +1125,13 @@ static int pi433_probe(struct spi_device *spi)
        if (retval < 0)
                return retval;
 
-       switch(retval)
-       {
-               case 0x24:
-                       dev_dbg(&spi->dev, "found pi433 (ver. 0x%x)", retval);
-                       break;
-               default:
-                       dev_dbg(&spi->dev, "unknown chip version: 0x%x", retval);
-                       return -ENODEV;
+       switch (retval) {
+       case 0x24:
+               dev_dbg(&spi->dev, "found pi433 (ver. 0x%x)", retval);
+               break;
+       default:
+               dev_dbg(&spi->dev, "unknown chip version: 0x%x", retval);
+               return -ENODEV;
        }
 
        /* Allocate driver data */