From 547ac1b0c4c105f11a2523fde48e1fd5dd8448d9 Mon Sep 17 00:00:00 2001 From: Patrick Mochel Date: Tue, 25 Mar 2003 08:34:38 -0600 Subject: [PATCH] driver model: fix warning in cpu init. --- drivers/base/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 30e7ab67e3588..5d35a324e0191 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -50,7 +50,7 @@ int __init cpu_dev_init(void) { int error; if (!(error = devclass_register(&cpu_devclass))) - if (error = driver_register(&cpu_driver)) + if ((error = driver_register(&cpu_driver))) devclass_unregister(&cpu_devclass); return error; } -- 2.53.0