Message ID | d2e4f367-fb86-7899-465a-cdfc866fdfda@cogentembedded.com (mailing list archive) |
---|---|
State | Accepted |
Commit | b93318a22f23cad8a3732451d83c604f289fcfc7 |
Headers | show |
Series | [v2] spi: kill useless initializer in spi_register_controller() | expand |
Index: spi/drivers/spi/spi.c =================================================================== --- spi.orig/drivers/spi/spi.c +++ spi/drivers/spi/spi.c @@ -2267,7 +2267,7 @@ int spi_register_controller(struct spi_c { struct device *dev = ctlr->dev.parent; struct boardinfo *bi; - int status = -ENODEV; + int status; int id, first_dynamic; if (!dev)
The 'status' local variable is initialized but this value is never used, thus kill that initializer. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> --- The patch is against the 'for-next' branch of Mark Brown's 'spi.git' repo. Changes in version 2: - rebased/renamed the patch. drivers/spi/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)