diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-08-26 21:11:33 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-08-29 03:25:05 -0400 |
commit | 547f60cee1b604477fde1cbc1bb2da8f6853c9bd (patch) | |
tree | 521e49a9c57a0dc52ad3466d267575dbed32b074 | |
parent | 7beeee469a2e8baece57ad5552e18671b7e56a30 (diff) |
backlight: ili922x: Remove 'else' after a return
Fixed the following checkpatch warning.
WARNING: else is not generally useful after a break or return
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/video/backlight/ili922x.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/video/backlight/ili922x.c b/drivers/video/backlight/ili922x.c index ea67fe199e34..e7f0890cc211 100644 --- a/drivers/video/backlight/ili922x.c +++ b/drivers/video/backlight/ili922x.c | |||
@@ -495,17 +495,18 @@ static int ili922x_probe(struct spi_device *spi) | |||
495 | "no LCD found: Chip ID 0x%x, ret %d\n", | 495 | "no LCD found: Chip ID 0x%x, ret %d\n", |
496 | reg, ret); | 496 | reg, ret); |
497 | return -ENODEV; | 497 | return -ENODEV; |
498 | } else { | ||
499 | dev_info(&spi->dev, "ILI%x found, SPI freq %d, mode %d\n", | ||
500 | reg, spi->max_speed_hz, spi->mode); | ||
501 | } | 498 | } |
502 | 499 | ||
500 | dev_info(&spi->dev, "ILI%x found, SPI freq %d, mode %d\n", | ||
501 | reg, spi->max_speed_hz, spi->mode); | ||
502 | |||
503 | ret = ili922x_read_status(spi, ®); | 503 | ret = ili922x_read_status(spi, ®); |
504 | if (ret) { | 504 | if (ret) { |
505 | dev_err(&spi->dev, "reading RS failed...\n"); | 505 | dev_err(&spi->dev, "reading RS failed...\n"); |
506 | return ret; | 506 | return ret; |
507 | } else | 507 | } |
508 | dev_dbg(&spi->dev, "status: 0x%x\n", reg); | 508 | |
509 | dev_dbg(&spi->dev, "status: 0x%x\n", reg); | ||
509 | 510 | ||
510 | ili922x_display_init(spi); | 511 | ili922x_display_init(spi); |
511 | 512 | ||