staging: fbtft: eliminate code duplication

Eliminated code duplication when searching for a display.

Signed-off-by: Anton Gerasimov <anton.gerasimov@openmailbox.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Anton Gerasimov 2015-06-13 22:23:53 +03:00 committed by Greg Kroah-Hartman
parent 8e56b95551
commit bc573c5131

View File

@ -1421,8 +1421,6 @@ static int __init fbtft_device_init(void)
": failed to register SPI device\n");
return ret;
}
found = true;
break;
} else {
ret = platform_device_register(p_device);
if (ret < 0) {
@ -1431,9 +1429,9 @@ static int __init fbtft_device_init(void)
ret);
return ret;
}
found = true;
break;
}
found = true;
break;
}
}