Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1714545
| From | Xiangyang Zhang <xyz.sun.ok@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] staging: pi433: fixed coding style issues |
| Date | 2017-08-18 05:30 +0200 |
| Message-ID | <ufG8W-5ZU-7@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
space required before the open parenthesis, open brace should be
on previous line.
Signed-off-by: Xiangyang Zhang <xyz.sun.ok@gmail.com>
---
drivers/staging/pi433/pi433_if.c | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
index 6b9b7df70f8e..87053e778451 100644
--- a/drivers/staging/pi433/pi433_if.c
+++ b/drivers/staging/pi433/pi433_if.c
@@ -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 */
--
2.14.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] staging: pi433: fixed coding style issues Xiangyang Zhang <xyz.sun.ok@gmail.com> - 2017-08-18 05:30 +0200
csiph-web