Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jingoo Han and committed by
Lee Jones
547f60ce 7beeee46

+6 -5
+6 -5
drivers/video/backlight/ili922x.c
··· 495 495 "no LCD found: Chip ID 0x%x, ret %d\n", 496 496 reg, ret); 497 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 } 499 + 500 + dev_info(&spi->dev, "ILI%x found, SPI freq %d, mode %d\n", 501 + reg, spi->max_speed_hz, spi->mode); 502 502 503 503 ret = ili922x_read_status(spi, &reg); 504 504 if (ret) { 505 505 dev_err(&spi->dev, "reading RS failed...\n"); 506 506 return ret; 507 - } else 508 - dev_dbg(&spi->dev, "status: 0x%x\n", reg); 507 + } 508 + 509 + dev_dbg(&spi->dev, "status: 0x%x\n", reg); 509 510 510 511 ili922x_display_init(spi); 511 512